Replace ls with find in the howto function
[khome.git] / lib / login_functions.sh
index 8876e75..ec040cb 100644 (file)
@@ -35,7 +35,7 @@ man() {
 }
 
 experiment() {
-    cd "$($HOME/bin/experiment $@)"
+    cd "$($HOME/bin/experiment $@)" || exit 1
 }
 
 hump() {
@@ -43,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() {
This page took 0.035205 seconds and 4 git commands to generate.