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:
Thomas Kühnel 2013-04-17 13:45:42 +02:00 committed by ridiculousfish
parent 2d7fbf2476
commit 7c6695354e

View file

@ -36,7 +36,7 @@ complete -c scp -d "Remote Path" -n "echo (commandline -ct)|sgrep -o '.*:';and t
echo (commandline -ct)|sgrep -o '.*:' echo (commandline -ct)|sgrep -o '.*:'
)( )(
#Get the list of remote files from the specified ssh server #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')\*
) )
" "