diff options
Diffstat (limited to '.bash_profile')
-rwxr-xr-x | .bash_profile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.bash_profile b/.bash_profile index 865207e..22b21ae 100755 --- a/.bash_profile +++ b/.bash_profile @@ -6,4 +6,7 @@ for file in bash_prompt exports aliases functions extra; do done # Case-insensitive globbing (used in pathname expansion) -shopt -s nocaseglob
\ No newline at end of file +shopt -s nocaseglob + +# Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards +complete -o "default" -o "nospace" -W "$(grep "^Host" ~/.ssh/config | grep -v "[?*]" | cut -d " " -f2)" scp sftp ssh
\ No newline at end of file |