From 0136ca23d40181f1fad3dd145586ee2d84bd6a22 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Wed, 17 Apr 2019 13:45:00 -0400 Subject: [PATCH] Replace ls with find in the howto function --- lib/login_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.20.1