mirror of
https://github.com/danbulant/nekofetch
synced 2026-07-07 20:10:43 +00:00
Add some extra whitespace
This commit is contained in:
parent
dd64a4d58e
commit
408dad816f
1 changed files with 8 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ while :; do
|
||||||
echo "debug has already been enabled!"
|
echo "debug has already been enabled!"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"--nsfw"|"nsfw"|"-n"|"n")
|
"--nsfw"|"nsfw"|"-n"|"n")
|
||||||
if [ -z "$imgtype" ]; then
|
if [ -z "$imgtype" ]; then
|
||||||
[ "$debug" = "true" ] && echo "Getting a nsfw image"
|
[ "$debug" = "true" ] && echo "Getting a nsfw image"
|
||||||
|
|
@ -20,6 +21,7 @@ while :; do
|
||||||
echo "$imgtype images were already chosen! Please only specify either sfw or nsfw!"
|
echo "$imgtype images were already chosen! Please only specify either sfw or nsfw!"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"--sfw"|"sfw"|"-s"|"s")
|
"--sfw"|"sfw"|"-s"|"s")
|
||||||
if [ -z "$imgtype" ]; then
|
if [ -z "$imgtype" ]; then
|
||||||
[ "$debug" = "true" ] && echo "Getting a sfw image"
|
[ "$debug" = "true" ] && echo "Getting a sfw image"
|
||||||
|
|
@ -28,10 +30,12 @@ while :; do
|
||||||
echo "$imgtype images were already chosen! Please only specify either sfw or nsfw!"
|
echo "$imgtype images were already chosen! Please only specify either sfw or nsfw!"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"--w3m"|"w3m"|"--img"|"img"|"-i"|"i")
|
"--w3m"|"w3m"|"--img"|"img"|"-i"|"i")
|
||||||
[ "$debug" = "true" ] && echo "Using w3m image backend for neofetch"
|
[ "$debug" = "true" ] && echo "Using w3m image backend for neofetch"
|
||||||
use_w3m="true"
|
use_w3m="true"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"--height"|"-h")
|
"--height"|"-h")
|
||||||
if [ -z "$use_height" ]; then
|
if [ -z "$use_height" ]; then
|
||||||
use_height="$2"
|
use_height="$2"
|
||||||
|
|
@ -41,6 +45,7 @@ while :; do
|
||||||
fi
|
fi
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
break
|
break
|
||||||
|
|
@ -73,10 +78,13 @@ if [ "$TERM" = "xterm-kitty" ]; then
|
||||||
jp2a --height="$height" "$tmpfile.jpg" > "$tmpfile"
|
jp2a --height="$height" "$tmpfile.jpg" > "$tmpfile"
|
||||||
neofetch --source "$tmpfile"
|
neofetch --source "$tmpfile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif [ "$LC_TERMINAL" = "iTerm2" ]; then
|
elif [ "$LC_TERMINAL" = "iTerm2" ]; then
|
||||||
neofetch --iterm2 "$tmpfile.jpg"
|
neofetch --iterm2 "$tmpfile.jpg"
|
||||||
|
|
||||||
elif [ "$use_w3m" = "true" ]; then
|
elif [ "$use_w3m" = "true" ]; then
|
||||||
neofetch --w3m "$tmpfile.jpg"
|
neofetch --w3m "$tmpfile.jpg"
|
||||||
|
|
||||||
else
|
else
|
||||||
jp2a --height="$height" "$tmpfile.jpg" > "$tmpfile"
|
jp2a --height="$height" "$tmpfile.jpg" > "$tmpfile"
|
||||||
neofetch --source "$tmpfile"
|
neofetch --source "$tmpfile"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue