Skip to content

Commit d8eb7f9

Browse files
authored
fix: Fix #677/graphic-loading for non-interactive shell (#678)
Fix #677
2 parents d538f66 + ffa2db0 commit d8eb7f9

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Configs/.user.zsh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#  Startup 
22
# Commands to execute on startup (before the prompt is shown)
3-
# This is a good place to load graphic/ascii art, display system information, etc.
4-
5-
if command -v pokego >/dev/null; then
6-
pokego --no-title -r 1,3,6
7-
elif command -v pokemon-colorscripts >/dev/null; then
8-
pokemon-colorscripts --no-title -r 1,3,6
9-
elif command -v fastfetch >/dev/null; then
10-
fastfetch --logo-type kitty
3+
# Check if the interactive shell option is set
4+
if [[ $- == *i* ]]; then
5+
# This is a good place to load graphic/ascii art, display system information, etc.
6+
if command -v pokego >/dev/null; then
7+
pokego --no-title -r 1,3,6
8+
elif command -v pokemon-colorscripts >/dev/null; then
9+
pokemon-colorscripts --no-title -r 1,3,6
10+
elif command -v fastfetch >/dev/null; then
11+
fastfetch --logo-type kitty
12+
fi
1113
fi
12-
1314
# fastfetch.sh
1415

1516
#  Aliases 

0 commit comments

Comments
 (0)