mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 07:23:34 +08:00
Add missing \n to pushd completions
This commit is contained in:
parent
b208d752e2
commit
2ffb47eba2
|
@ -2,7 +2,7 @@ function __fish_complete_pushd_plus
|
|||
if count $dirstack > /dev/null
|
||||
# print each member of the stack, replace $HOME with ~
|
||||
for i in (seq (count $dirstack))
|
||||
printf "+%s\t%s" $i "Rotate to "(string replace -r "^$HOME" "~" -- $dirstack[$i])
|
||||
printf "+%s\t%s\n" $i "Rotate to "(string replace -r "^$HOME" "~" -- $dirstack[$i])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -11,7 +11,7 @@ function __fish_complete_pushd_minus
|
|||
if count $dirstack > /dev/null
|
||||
# print each member of the stack, replace $HOME with ~
|
||||
for i in (seq (count $dirstack) -1 1)
|
||||
printf "-%s\t%s" $i "Rotate to "(string replace -r "^$HOME" "~" -- $dirstack[$i])
|
||||
printf "-%s\t%s\n" $i "Rotate to "(string replace -r "^$HOME" "~" -- $dirstack[$i])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -19,7 +19,7 @@ end
|
|||
function __fish_complete_pushd_swap
|
||||
if count $dirstack > /dev/null
|
||||
# replace $HOME with ~
|
||||
printf "\t%s" "Swap with "(string replace -r "^$HOME" "~" -- $dirstack[1])
|
||||
printf "\t%s\n" "Swap with "(string replace -r "^$HOME" "~" -- $dirstack[1])
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user