From 2db7a49506ab33589f1e3a6c199ea1e873046bfb Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Sun, 18 Sep 2011 11:48:58 +0300 Subject: Add tab completion for `defaults read|write NSGlobalDomain`. Useful when looking for new ~/.osx additions. --- .bash_profile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.bash_profile') 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 -- cgit v1.2.3