mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 10:01:14 -03:00
Fix scp completions
Introduced when __fish_mktemp_relative was.
Fixes #11860
(cherry picked from commit 97acc12d62)
This commit is contained in:
committed by
Johannes Altmanninger
parent
79b0d24701
commit
42decbf1da
@@ -47,7 +47,7 @@ complete -c scp -d "Local Path" -n "not string match @ -- (commandline -ct)"
|
|||||||
complete -c scp -d "Remote Path" -f -n "commandline -ct | string match -e ':'" -a '
|
complete -c scp -d "Remote Path" -f -n "commandline -ct | string match -e ':'" -a '
|
||||||
(__scp_remote_target):(
|
(__scp_remote_target):(
|
||||||
if not set -q __fish_scp_sftp
|
if not set -q __fish_scp_sftp
|
||||||
set -l tmp (__fish_mktemp fish-scp)
|
set -l tmp (__fish_mktemp_relative fish-scp)
|
||||||
if scp -P(__scp2ssh_port_number) -o "BatchMode yes" -q -O $tmp (__scp_remote_target):/dev/null
|
if scp -P(__scp2ssh_port_number) -o "BatchMode yes" -q -O $tmp (__scp_remote_target):/dev/null
|
||||||
set -g __fish_scp_sftp true
|
set -g __fish_scp_sftp true
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user