Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.bash_profile
export VISUAL=vim
export EDITOR="$VISUAL"
export HISTCONTROL=ignoredups:erasedups
export HISTSIZE=10000
export PROMPT_COMMAND='history -a; history -r;echo -ne "\033]0;${PWD##*/}\007"'
green=$(tput setaf 2)
reset=$(tput sgr0)
PS1="\w \[$green\]$\[$reset\] "
stty -ixon
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash"
function iterm2_print_user_vars() {
iterm2_set_user_var gitBranch $((git branch 2> /dev/null) | grep \* | cut -c3-)
iterm2_set_user_var gitBranches $(getBranches)
}
function getBranches() {
while IFS='' read -r line || [[ -n "$line" ]]; do
result="$result\\n$line"
done < ~/.gitbranches
echo $result
}
GOROOT='/usr/local/opt/go/libexec/bin'
export PATH=$PATH:$GOROOT:"$HOME/go/bin"
export PATH="/usr/local/opt/node@8/bin:$PATH"
source ~/.gitbranches
alias mvim='open -a MacVim'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.