mirror of
https://github.com/danbulant/nekofetch
synced 2026-07-07 03:51:01 +00:00
Add multiple flags/args that do the same (options are good)
This commit is contained in:
parent
69ce777957
commit
9f4fb0960b
1 changed files with 6 additions and 2 deletions
|
|
@ -10,14 +10,18 @@ done
|
||||||
tmpfile="$(mktemp -p /tmp nekofetchXXXXXXXX)"
|
tmpfile="$(mktemp -p /tmp nekofetchXXXXXXXX)"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"--nsfw")
|
"--nsfw"|"nsfw"|"-n"|"n")
|
||||||
echo "Getting a nsfw image"
|
echo "Getting a nsfw image"
|
||||||
imgurl="https://nekos.life/api/v2/img/cum_jpg"
|
imgurl="https://nekos.life/api/v2/img/cum_jpg"
|
||||||
;;
|
;;
|
||||||
*)
|
"--sfw"|"sfw"|"-s"|"s")
|
||||||
echo "Getting a sfw image"
|
echo "Getting a sfw image"
|
||||||
imgurl="https://nekos.life/api/v2/img/neko"
|
imgurl="https://nekos.life/api/v2/img/neko"
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
echo "Could not interpret as either sfw or nsfw. Defaulting to sfw."
|
||||||
|
imgurl="https://nekos.life/api/v2/img/neko"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
height=${2:-$(($(stty size | awk '{print $1}') - 5))}
|
height=${2:-$(($(stty size | awk '{print $1}') - 5))}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue