aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2011-09-18 11:48:58 +0300
committerMathias Bynens <mathias@qiwi.be>2011-09-18 11:48:58 +0300
commit2db7a49506ab33589f1e3a6c199ea1e873046bfb (patch)
tree79939c869c8761dffc9611448b740804cf652490
parentdf4eb658f19c156c5b17f151a43dd38800397374 (diff)
downloaddotfiles-2db7a49506ab33589f1e3a6c199ea1e873046bfb.tar.gz
dotfiles-2db7a49506ab33589f1e3a6c199ea1e873046bfb.tar.bz2
dotfiles-2db7a49506ab33589f1e3a6c199ea1e873046bfb.zip
Add tab completion for `defaults read|write NSGlobalDomain`. Useful when looking for new ~/.osx additions.
-rwxr-xr-x.bash_profile5
1 files changed, 4 insertions, 1 deletions
diff --git a/.bash_profile b/.bash_profile
index 22b21ae..06ab619 100755
--- a/.bash_profile
+++ b/.bash_profile
@@ -9,4 +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 \ No newline at end of file
+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