mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 17:31:14 -03:00
Append / to the end of directories for scp completion as suggested by https://github.com/fish-shell/fish-shell/issues/42#issuecomment-7205032
This commit is contained in:
committed by
ridiculousfish
parent
2d7fbf2476
commit
7c6695354e
@@ -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')\*
|
||||
)
|
||||
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user