Remove Ubuntu pkg: cargo
[khome.git] / home / lib / login_functions.sh
index 4517697..c477f70 100644 (file)
@@ -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 "$@"
 }
 
@@ -234,14 +244,14 @@ yt() {
     local _yt_dir
 
     _yt_uri="$1"
-    _yt_id=$(youtube-dl --get-id "$_yt_uri")
-    _yt_title=$(youtube-dl --get-title "$_yt_uri")
+    _yt_id=$(youtube-dlc --get-id "$_yt_uri")
+    _yt_title=$(youtube-dlc --get-title "$_yt_uri")
     _yt_dir="${DIR_YOUTUBE}/individual-videos/${_yt_title}--${_yt_id}"
 
     mkdir -p "$_yt_dir"
     cd "$_yt_dir" || kill -INT $$
     echo "$_yt_uri" > 'uri'
-    youtube-dl -c --write-description --write-info-json "$_yt_uri"
+    youtube-dlc -c --write-description --write-info-json "$_yt_uri"
 }
 
 gh_fetch_repos() {
@@ -284,9 +294,11 @@ $(date '+%F %A')
 Morning report
 --------------
 
-### Previous
+### Prev
+
+### Curr
 
-### Current
+### Next
 
 ### Blockers
 
@@ -317,7 +329,7 @@ weather() {
         '') _weather_location="$WEATHER_LOCATION";;
          *) _weather_location="$1"
     esac
-    curl "http://wttr.in/$_weather_location"
+    curl "http://wttr.in/$_weather_location?format=v2"
 }
 
 bt_devs_paired() {
This page took 0.030227 seconds and 4 git commands to generate.