From e0bd28ee2886e14119208b3a05e0dd48fb3531ae Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Thu, 21 Dec 2023 16:00:27 +0200 Subject: Added two new bindkeys in zsh to go up and own the history using C-k and C-j instead of C-p and C-n --- scripts/.scripts/books.sh | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'scripts/.scripts/books.sh') diff --git a/scripts/.scripts/books.sh b/scripts/.scripts/books.sh index 7879479..d2f8da4 100755 --- a/scripts/.scripts/books.sh +++ b/scripts/.scripts/books.sh @@ -1,7 +1,7 @@ #!/bin/sh ################################################################## # ___ __ __ _ # -# / _ \ _ __ ___ __ _ _ __ | \/ | __ _ __ _ __| |_ _ # +# / _ \ _ __ ___ __ _ _ __ | \/ | __ _ __ _ __| |_ _ # #| | | | '_ ` _ \ / _` | '__| | |\/| |/ _` |/ _` |/ _` | | | | # #| |_| | | | | | | (_| | | | | | | (_| | (_| | (_| | |_| | # # \___/|_| |_| |_|\__,_|_| |_| |_|\__,_|\__, |\__,_|\__ | # @@ -10,23 +10,13 @@ ################################################################## path="/run/media/omar/Storage/omar/Books" -choice=$(ls "$path" | dmenu -i -l 10) +choice=$(ls -a "$path" | dmenu -i -l 10) new_choice=$choice -while [ -d "$path/$new_choice" ] -do - choice=$(ls "$path/$new_choice" | dmenu -l 10) - new_choice+="/" - new_choice+=$choice #path/books for cs/ - echo $new_choice +while [ -d "$path/$new_choice" ]; do + choice=$(ls -a "$path/$new_choice" | dmenu -l 10) + new_choice+="/" + new_choice+=$choice #path/books for cs/ done zathura --mode fullscreen "$path/$new_choice" - - - - - - - - -- cgit v1.2.3