X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Flib%2Flogin_functions.sh;h=b84f30313ede75c998908527bc044fc9b7c6a78d;hb=d93397a615fd54f1080a4ca5941c410dcca6a9f1;hp=5cb3709bae45e82495866597c9de2558946acd79;hpb=858aa230f2493864905e56c5c89a9a0225db24da;p=khome.git diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 5cb3709..b84f303 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -206,12 +206,22 @@ void_pkgs() { # Colorful man man() { - LESS_TERMCAP_md=$'\e[01;31m' \ + # mb: begin blink + # md: begin bold + # me: end bold, blink and underline + # + # so: begin standout (reverse video) + # se: end standout + # + # us: begin underline + # ue: end underline + + LESS_TERMCAP_md=$'\e[01;30m' \ LESS_TERMCAP_me=$'\e[0m' \ - LESS_TERMCAP_se=$'\e[0m' \ LESS_TERMCAP_so=$'\e[01;44;33m' \ + LESS_TERMCAP_se=$'\e[0m' \ + LESS_TERMCAP_us=$'\e[01;33m' \ LESS_TERMCAP_ue=$'\e[0m' \ - LESS_TERMCAP_us=$'\e[01;32m' \ command man "$@" } @@ -312,7 +322,12 @@ note() { } weather() { - curl "http://wttr.in/$WEATHER_LOCATION" + local _weather_location + case "$1" in + '') _weather_location="$WEATHER_LOCATION";; + *) _weather_location="$1" + esac + curl "http://wttr.in/$_weather_location" } bt_devs_paired() {