Last active
March 14, 2019 09:25
-
-
Save vodrazka/5935ac57089e41b24b4b9ebd9c212951 to your computer and use it in GitHub Desktop.
.bash_profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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