diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2023-12-21 16:00:27 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2023-12-21 16:00:27 +0200 |
| commit | e0bd28ee2886e14119208b3a05e0dd48fb3531ae (patch) | |
| tree | 35423c42e123c6d1882d7b9cf6f567b01b5887db /scripts/.scripts/books.sh | |
| parent | e845dae21c63af9a015d7a095d66624ca011fe12 (diff) | |
| download | dotfiles-e0bd28ee2886e14119208b3a05e0dd48fb3531ae.tar.xz dotfiles-e0bd28ee2886e14119208b3a05e0dd48fb3531ae.zip | |
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
Diffstat (limited to 'scripts/.scripts/books.sh')
| -rwxr-xr-x | scripts/.scripts/books.sh | 22 |
1 files changed, 6 insertions, 16 deletions
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" - - - - - - - - |
