Skip to content

Commit

Permalink
.bash_profile: Fixed indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
donnemartin committed Jul 8, 2015
1 parent 0c084f8 commit 63c3566
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export PATH="$HOME/bin:$PATH";
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
[ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
unset file;

Expand All @@ -22,19 +22,19 @@ shopt -s cdspell;
# * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux`
# * Recursive globbing, e.g. `echo **/*.txt`
for option in autocd globstar; do
shopt -s "$option" 2> /dev/null;
shopt -s "$option" 2> /dev/null;
done;

# Add tab completion for many Bash commands
if which brew > /dev/null && [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then
source "$(brew --prefix)/share/bash-completion/bash_completion";
source "$(brew --prefix)/share/bash-completion/bash_completion";
elif [ -f /etc/bash_completion ]; then
source /etc/bash_completion;
source /etc/bash_completion;
fi;

# Enable tab completion for `g` by marking it as an alias for `git`
if type _git &> /dev/null && [ -f /usr/local/etc/bash_completion.d/git-completion.bash ]; then
complete -o default -o nospace -F _git g;
complete -o default -o nospace -F _git g;
fi;

# Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards
Expand Down

0 comments on commit 63c3566

Please sign in to comment.