1
0
Fork 0
mirror of https://github.com/jarun/nnn.git synced 2025-04-15 09:56:32 +00:00

use small letters

This commit is contained in:
Markus Meier 2025-02-09 11:12:44 +01:00
parent f04a88934e
commit e0ed6c827f

View file

@ -9,6 +9,7 @@
# - OR z - https://github.com/rupa/z (z requires fzf)
# - OR z (fish) - https://github.com/jethrokuan/z (z requires fzf)
# - OR z.lua - https://github.com/skywind3000/z.lua (z.lua can enhanced with fzf)
#
# Note: The dependencies STORE NAVIGATION PATTERNS
#
# to make z.lua work, you need to set $NNN_ZLUA to the path of script z.lua
@ -23,13 +24,13 @@ if [ ! -p "$NNN_PIPE" ]; then
fi
if type jump >/dev/null 2>&1; then
printf "Jump to: "
printf "jump to: "
IFS= read -r line
# shellcheck disable=SC2086
odir="$(jump cd ${line})"
printf "%s" "0c$odir" > "$NNN_PIPE"
elif type autojump >/dev/null 2>&1; then
printf "Jump to: "
printf "jump to: "
read -r dir
odir="$(autojump "$dir")"
printf "%s" "0c$odir" > "$NNN_PIPE"
@ -38,7 +39,7 @@ elif type zoxide >/dev/null 2>&1; then
odir="$(zoxide query -i --)"
printf "%s" "0c$odir" > "$NNN_PIPE"
else
printf "Jump to: "
printf "jump to: "
read -r dir
odir="$(zoxide query -- "$dir")"
printf "%s" "0c$odir" > "$NNN_PIPE"
@ -50,7 +51,7 @@ elif type lua >/dev/null 2>&1 && [ -n "$NNN_ZLUA" ]; then
| fzf --nth -1 --delimiter=/ --reverse --inline-info --tac +s -e --height 35%)"
printf "0c%s" "$odir" > "$NNN_PIPE"
else
printf "Jump to: "
printf "jump to: "
read -r line
odir="$(lua "$NNN_ZLUA" -e "$line")"
printf "%s" "0c$odir" > "$NNN_PIPE"