aboutsummaryrefslogtreecommitdiffstats
path: root/.bash_profile
diff options
context:
space:
mode:
Diffstat (limited to '.bash_profile')
-rwxr-xr-x.bash_profile2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bash_profile b/.bash_profile
index 06ab619..36ca384 100755
--- a/.bash_profile
+++ b/.bash_profile
@@ -9,7 +9,7 @@ done
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
+[ -e "$HOME/.ssh/config" ] && complete -o "default" -o "nospace" -W "$(grep "^Host" ~/.ssh/config | grep -v "[?*]" | cut -d " " -f2)" scp sftp ssh
# Add tab completion for `defaults read|write NSGlobalDomain`
complete -W "NSGlobalDomain" defaults \ No newline at end of file