Replace ls with find in the howto function
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 17 Apr 2019 17:45:00 +0000 (13:45 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 17 Apr 2019 17:45:00 +0000 (13:45 -0400)
lib/login_functions.sh

index c4dcb53..ec040cb 100644 (file)
@@ -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.027888 seconds and 4 git commands to generate.