From: Siraaj Khandkar Date: Wed, 17 Apr 2019 17:45:00 +0000 (-0400) Subject: Replace ls with find in the howto function X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;ds=sidebyside;h=0136ca23d40181f1fad3dd145586ee2d84bd6a22;p=khome.git Replace ls with find in the howto function --- diff --git a/lib/login_functions.sh b/lib/login_functions.sh index c4dcb53..ec040cb 100644 --- a/lib/login_functions.sh +++ b/lib/login_functions.sh @@ -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() {