Replace $HOME with ~
[khome.git] / lib / login_functions.sh
index add0cd0..307bec6 100644 (file)
@@ -1,4 +1,5 @@
 # Top Disk-Using directories
+# TODO: Consider using numfmt instead of awk
 tdu() {
     du "$1" \
     | sort -n -k 1 -r --parallel="$(nproc)" \
@@ -34,7 +35,7 @@ man() {
 }
 
 experiment() {
-    cd "$($HOME/bin/experiment $@)"
+    cd "$(~/bin/experiment $@)" || exit 1
 }
 
 hump() {
@@ -42,7 +43,7 @@ hump() {
 }
 
 howto() {
-    cat $(ls -1 -d  $HOME/Archives/Documents/HOWTOs/* | fzf)
+    cat "$(find  ~/Archives/Documents/HOWTOs -mindepth 1 -maxdepth 1 | sort | fzf)"
 }
 
 gh_fetch_repos() {
@@ -72,9 +73,9 @@ $(date +%F)
 Morning report
 --------------
 
-### Yesterday
+### Previous
 
-### Today
+### Current
 
 ### Blockers
 
@@ -97,3 +98,15 @@ work_log() {
 weather() {
     curl "http://wttr.in/$WEATHER_LOCATION"
 }
+
+bt_devs_paired() {
+    bluetoothctl -- paired-devices \
+    | awk '{print $2}' \
+    | xargs bluetoothctl -- info
+}
+
+bt_devs() {
+    bluetoothctl -- devices \
+    | awk '{print $2}' \
+    | xargs bluetoothctl -- info
+}
This page took 0.025072 seconds and 4 git commands to generate.