aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/sftp.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-30 14:17:01 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-30 14:17:01 +1300
commitf02abc131991a754a9aabed14c6acdbed253a1de (patch)
tree800027c8a3460f911a68db65bf330a2fbcf471e7 /bash/bash_completion.d/sftp.bash
parent1347c7b06548e6fb8b5b09d084937605e2c3da5e (diff)
parent76cd3976c00fabda0f262ce3886b5f3d0b1da874 (diff)
downloaddotfiles-f02abc131991a754a9aabed14c6acdbed253a1de.tar.gz
Merge branch 'release/v2.2.0'v2.2.0
* release/v2.2.0: Bump VERSION Add `abort` attribute to new autoload function Suppress a couple of ShellCheck errors Remove redundant return short-circuit Add explanatory comments for version check Use ||/&& short-circuiting only for flow control Drop support for Bash <= 3.0
Diffstat (limited to 'bash/bash_completion.d/sftp.bash')
-rw-r--r--bash/bash_completion.d/sftp.bash8
1 files changed, 1 insertions, 7 deletions
diff --git a/bash/bash_completion.d/sftp.bash b/bash/bash_completion.d/sftp.bash
index 60044e41..ad4d406f 100644
--- a/bash/bash_completion.d/sftp.bash
+++ b/bash/bash_completion.d/sftp.bash
@@ -1,10 +1,4 @@
# Completion for sftp(1) with ssh_config(5) hostnames
declare -F _ssh_config_hosts >/dev/null ||
source "$HOME"/.bash_completion.d/_ssh_config_hosts.bash
-
-# bashdefault requires Bash >=3.0
-if ((BASH_VERSINFO[0] >= 3)) ; then
- complete -F _ssh_config_hosts -o bashdefault -o default sftp
-else
- complete -F _ssh_config_hosts -o default sftp
-fi
+complete -F _ssh_config_hosts -o bashdefault -o default sftp