batipanel 0.4.45 → 0.4.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/install.sh +5 -0
- package/package.json +1 -1
- package/scripts/install/shell-rc.sh +2 -1
- package/scripts/install/tmux-config.sh +5 -4
- package/uninstall.sh +2 -2
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.46
|
package/install.sh
CHANGED
|
@@ -58,6 +58,11 @@ _sed_i() { sed_i "$@"; }
|
|
|
58
58
|
export -f _sed_i 2>/dev/null || true
|
|
59
59
|
|
|
60
60
|
# source theme modules so _generate_themed_prompt is available
|
|
61
|
+
if [ ! -f "$BATIPANEL_HOME/lib/core.sh" ]; then
|
|
62
|
+
echo "ERROR: Installation incomplete — lib files not found in $BATIPANEL_HOME"
|
|
63
|
+
echo " Try reinstalling: curl -fsSL batipanel.com/install.sh | bash"
|
|
64
|
+
exit 1
|
|
65
|
+
fi
|
|
61
66
|
# shellcheck source=lib/core.sh
|
|
62
67
|
source "$BATIPANEL_HOME/lib/core.sh"
|
|
63
68
|
# shellcheck source=lib/themes-data.sh
|
package/package.json
CHANGED
|
@@ -133,7 +133,7 @@ setup_shell_rc() {
|
|
|
133
133
|
# === one-time welcome + GitHub star prompt ===
|
|
134
134
|
# clean up old welcome blocks from previous installs
|
|
135
135
|
if grep -qF "batipanel welcome" "$SHELL_RC" 2>/dev/null; then
|
|
136
|
-
sed_i '/# batipanel welcome
|
|
136
|
+
sed_i '/# batipanel welcome/,/# end batipanel welcome/d' "$SHELL_RC" 2>/dev/null || true
|
|
137
137
|
fi
|
|
138
138
|
# remove old .star-shown flag so new welcome shows
|
|
139
139
|
rm -f "$BATIPANEL_HOME/.star-shown" 2>/dev/null || true
|
|
@@ -152,6 +152,7 @@ if [ ! -f "$HOME/.batipanel/.star-shown" ]; then
|
|
|
152
152
|
printf '\n'
|
|
153
153
|
mkdir -p "$HOME/.batipanel" && touch "$HOME/.batipanel/.star-shown"
|
|
154
154
|
fi
|
|
155
|
+
# end batipanel welcome
|
|
155
156
|
STAR_EOF
|
|
156
157
|
fi
|
|
157
158
|
|
|
@@ -20,12 +20,13 @@ setup_tmux_config() {
|
|
|
20
20
|
echo "bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'pbcopy'"
|
|
21
21
|
;;
|
|
22
22
|
*)
|
|
23
|
-
if
|
|
24
|
-
|
|
25
|
-
echo "bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -selection clipboard'"
|
|
26
|
-
elif grep -qi microsoft /proc/version 2>/dev/null; then
|
|
23
|
+
if grep -qi microsoft /proc/version 2>/dev/null; then
|
|
24
|
+
# WSL: always use clip.exe (xclip needs X server which WSL lacks)
|
|
27
25
|
echo "# WSL clipboard"
|
|
28
26
|
echo "bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'clip.exe'"
|
|
27
|
+
elif command -v xclip &>/dev/null; then
|
|
28
|
+
echo "# Linux clipboard (xclip)"
|
|
29
|
+
echo "bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -selection clipboard'"
|
|
29
30
|
fi
|
|
30
31
|
;;
|
|
31
32
|
esac
|
package/uninstall.sh
CHANGED
|
@@ -63,10 +63,10 @@ for rc in "$HOME/.zshrc" "$HOME/.bashrc" "$HOME/.bash_profile" "$HOME/.profile";
|
|
|
63
63
|
_sed_i '/# batipanel shell theme/d' "$rc"
|
|
64
64
|
_sed_i '/# batipanel prompt theme/d' "$rc"
|
|
65
65
|
# welcome/star block (heredoc inserted by installer)
|
|
66
|
-
_sed_i '/# batipanel welcome
|
|
66
|
+
_sed_i '/# batipanel welcome/,/# end batipanel welcome/d' "$rc"
|
|
67
67
|
# completion lines
|
|
68
68
|
_sed_i '/completions\/batipanel/d' "$rc"
|
|
69
|
-
_sed_i '
|
|
69
|
+
_sed_i '/\/_batipanel$/d' "$rc"
|
|
70
70
|
# PATH additions
|
|
71
71
|
_sed_i '/\.batipanel\/bin/d' "$rc"
|
|
72
72
|
# clean up blank lines left behind (collapse multiple empty lines to one)
|