-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.bash_profile
More file actions
26 lines (18 loc) · 847 Bytes
/
Copy path.bash_profile
File metadata and controls
26 lines (18 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:$PATH"
# source homebrew installed completions
if [ type "brew" &> /dev/null ] && [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# enable autocomplete for g git alias
complete -o bashdefault -o default -o nospace -F _git g 2>/dev/null \ || complete -o default -o nospace -F _git g
# include shell agnostic configuration
[[ -s "$HOME/.commonrc" ]] && . "$HOME/.commonrc"
# source nvm completions if available
[[ -r $NVM_DIR/bash_completion ]] && . $NVM_DIR/bash_completion
# don't be stupid, bash
shopt -s histappend
export PS1='\u@\h:\W$(__git_ps1 " (%s)") \$ '
# source .bashrc if available. this won't happen on new login shells on mac os
# by default
[[ -s "$HOME/.bashrc" ]] && . "$HOME/.bashrc"
export PATH=".git/safe/../../bin:$PATH"