mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-23 03:05:13 +08:00
Suppress shell function lookup for ssh during scp completion
This prevents functions or aliases to run during tab completion of remote files for the `scp` command.
This commit is contained in:
parent
42f38bb806
commit
9d47c46a7a
@ -54,7 +54,7 @@ complete -c scp -d "Local Path" -n "not string match @ -- (commandline -ct)"
|
||||
# Get the list of remote files from the scp target.
|
||||
complete -c scp -d "Remote Path" -f -n "commandline -ct | string match -eq ':'" -a "
|
||||
(__scp_remote_target):( \
|
||||
ssh (__scp2ssh_port_number) -o 'BatchMode yes' (__scp_remote_target) /bin/ls\ -dp\ (__scp_remote_path_prefix)\* 2>/dev/null
|
||||
command ssh (__scp2ssh_port_number) -o 'BatchMode yes' (__scp_remote_target) /bin/ls\ -dp\ (__scp_remote_path_prefix)\* 2>/dev/null
|
||||
)
|
||||
"
|
||||
complete -c scp -s B -d "Batch mode"
|
||||
|
Loading…
x
Reference in New Issue
Block a user