Skip to content

Commit 60d4feb

Browse files
committed
fix: reindent and replace node icon
1 parent 5d1cdd1 commit 60d4feb

File tree

1 file changed

+55
-55
lines changed

1 file changed

+55
-55
lines changed

bin/tmux-nerd-font-window-name

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -4,70 +4,70 @@ NAME=$1
44
SHOW_NAME="$(tmux show -gqv '@tmux-nerd-font-window-name-show-name')"
55

66
function get_shell_icon() {
7-
local default_shell_icon=""
8-
local shell_icon
9-
shell_icon="$(tmux show -gqv '@tmux-nerd-font-window-name-shell-icon')"
10-
if [ "$shell_icon" != "" ]; then
11-
echo "$shell_icon"
12-
else
13-
echo "$default_shell_icon"
14-
fi
7+
local default_shell_icon=""
8+
local shell_icon
9+
shell_icon="$(tmux show -gqv '@tmux-nerd-font-window-name-shell-icon')"
10+
if [ "$shell_icon" != "" ]; then
11+
echo "$shell_icon"
12+
else
13+
echo "$default_shell_icon"
14+
fi
1515
}
1616

1717
SHELL_ICON=$(get_shell_icon)
1818

1919
get_icon() {
20-
case $NAME in
21-
tmux)
22-
echo ""
23-
;;
24-
htop | top)
25-
echo ""
26-
;;
27-
fish | zsh | bash | tcsh)
28-
echo "$SHELL_ICON"
29-
;;
30-
vi | vim | nvim | lvim)
31-
echo ""
32-
;;
33-
lazygit | git | tig)
34-
echo ""
35-
;;
36-
node)
37-
echo "󰎙"
38-
;;
39-
ruby)
40-
echo ""
41-
;;
42-
go)
43-
echo ""
44-
;;
45-
lf | lfcd)
46-
echo ""
47-
;;
48-
beam | beam.smp) # Erlang runtime
49-
echo ""
50-
;;
51-
rustc | rustup)
52-
echo ""
53-
;;
54-
Python)
55-
echo ""
56-
;;
57-
*)
58-
if [ "$SHOW_NAME" = true ]; then
59-
echo ""
60-
else
61-
echo "$NAME"
62-
fi
63-
;;
64-
esac
20+
case $NAME in
21+
tmux)
22+
echo ""
23+
;;
24+
htop | top)
25+
echo ""
26+
;;
27+
fish | zsh | bash | tcsh)
28+
echo "$SHELL_ICON"
29+
;;
30+
vi | vim | nvim | lvim)
31+
echo ""
32+
;;
33+
lazygit | git | tig)
34+
echo ""
35+
;;
36+
node)
37+
echo ""
38+
;;
39+
ruby)
40+
echo ""
41+
;;
42+
go)
43+
echo ""
44+
;;
45+
lf | lfcd)
46+
echo ""
47+
;;
48+
beam | beam.smp) # Erlang runtime
49+
echo ""
50+
;;
51+
rustc | rustup)
52+
echo ""
53+
;;
54+
Python)
55+
echo ""
56+
;;
57+
*)
58+
if [ "$SHOW_NAME" = true ]; then
59+
echo ""
60+
else
61+
echo "$NAME"
62+
fi
63+
;;
64+
esac
6565
}
6666

6767
ICON=$(get_icon)
6868

6969
if [ "$SHOW_NAME" = true ]; then
70-
echo "$ICON" "$NAME"
70+
echo "$ICON" "$NAME"
7171
else
72-
echo "$ICON"
72+
echo "$ICON"
7373
fi

0 commit comments

Comments
 (0)