Shorten if statement
This commit is contained in:
parent
2787c1b68c
commit
52605060d1
6
neofetch
6
neofetch
|
@ -1564,10 +1564,8 @@ getbirthday () {
|
||||||
birthday=${birthday%:*}
|
birthday=${birthday%:*}
|
||||||
|
|
||||||
# Pretty output
|
# Pretty output
|
||||||
if [ "$birthday_shorthand" == "off" ]; then
|
[ "$birthday_shorthand" == "off" ] && \
|
||||||
birthday="$date_cmd"
|
birthday="${date_cmd/ / }"
|
||||||
birthday=${birthday/ / }
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Toggle showing the time
|
# Toggle showing the time
|
||||||
[ "$birthday_time" == "off" ] && \
|
[ "$birthday_time" == "off" ] && \
|
||||||
|
|
Reference in New Issue