aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/scp.fish
diff options
context:
space:
mode:
authorGravatar Thomas Kühnel <kuehnelth@googlemail.com>2013-04-17 13:45:42 +0200
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-04-20 13:26:06 -0700
commit7c6695354e126345b878dd8869fe8215ed37d817 (patch)
treea1c5189960c2411def24d9eea5ea5cdc5763897b /share/completions/scp.fish
parent2d7fbf2476015e90e2fac20103c71e647748a8a0 (diff)
Append / to the end of directories for scp completion as suggested by https://github.com/fish-shell/fish-shell/issues/42#issuecomment-7205032
Diffstat (limited to 'share/completions/scp.fish')
-rw-r--r--share/completions/scp.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/scp.fish b/share/completions/scp.fish
index e22f778e..5e92ebf6 100644
--- a/share/completions/scp.fish
+++ b/share/completions/scp.fish
@@ -36,7 +36,7 @@ complete -c scp -d "Remote Path" -n "echo (commandline -ct)|sgrep -o '.*:';and t
echo (commandline -ct)|sgrep -o '.*:'
)(
#Get the list of remote files from the specified ssh server
- ssh -o \"BatchMode yes\" (echo (commandline -ct)|sed -ne 's/\(.*\):.*/\1/p') ls\ -d\ (echo (commandline -ct)|sed -ne 's/.*://p')\*
+ ssh -o \"BatchMode yes\" (echo (commandline -ct)|sed -ne 's/\(.*\):.*/\1/p') ls\ -dp\ (echo (commandline -ct)|sed -ne 's/.*://p')\*
)
"