Shorten if statement
This commit is contained in:
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
Block a user