batipanel 0.4.44 → 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/fonts.sh +9 -0
- package/scripts/install/shell-rc.sh +2 -1
- package/scripts/install/tmux-config.sh +5 -4
- package/scripts/install/tools.sh +2 -3
- 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
package/scripts/install/fonts.sh
CHANGED
|
@@ -32,6 +32,15 @@ _install_nerd_font_linux() {
|
|
|
32
32
|
setup_fonts_and_terminal() {
|
|
33
33
|
if [ "$OS" = "Linux" ]; then
|
|
34
34
|
_install_nerd_font_linux
|
|
35
|
+
# WSL: fonts installed to Linux but Windows Terminal uses Windows fonts
|
|
36
|
+
if grep -qi microsoft /proc/version 2>/dev/null; then
|
|
37
|
+
echo ""
|
|
38
|
+
echo " WSL detected — fonts are installed in Linux, but Windows Terminal"
|
|
39
|
+
echo " uses Windows fonts. To see powerline glyphs correctly:"
|
|
40
|
+
echo " 1. Download MesloLGS NF from: https://github.com/ryanoasis/nerd-fonts/releases"
|
|
41
|
+
echo " 2. Install the .ttf files on Windows (right-click → Install)"
|
|
42
|
+
echo " 3. Set font in Windows Terminal: Settings → Profiles → Font face → MesloLGS Nerd Font"
|
|
43
|
+
fi
|
|
35
44
|
fi
|
|
36
45
|
|
|
37
46
|
if [ "$OS" = "Darwin" ]; then
|
|
@@ -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/scripts/install/tools.sh
CHANGED
|
@@ -34,11 +34,10 @@ install_required_tools() {
|
|
|
34
34
|
echo ""
|
|
35
35
|
echo " Homebrew is required on macOS for installing tools (tmux, etc.)"
|
|
36
36
|
if [ -n "${npm_lifecycle_event:-}" ]; then
|
|
37
|
-
# npm/npx: can't install brew (needs sudo password)
|
|
37
|
+
# npm/npx: can't install brew (needs sudo password interactively)
|
|
38
38
|
echo ""
|
|
39
|
-
echo "
|
|
39
|
+
echo " Use this instead:"
|
|
40
40
|
echo ""
|
|
41
|
-
echo " /bin/bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\""
|
|
42
41
|
echo " curl -fsSL batipanel.com/install.sh | bash"
|
|
43
42
|
echo ""
|
|
44
43
|
exit 1
|
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)
|