Skip to content

Instantly share code, notes, and snippets.

@daveaseeman
Last active November 29, 2017 03:06
Show Gist options
  • Save daveaseeman/5c16ef04249290e741312134d462a0c5 to your computer and use it in GitHub Desktop.
Save daveaseeman/5c16ef04249290e741312134d462a0c5 to your computer and use it in GitHub Desktop.
terminal customization
# import style from .bashrc
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
alias laptop='bash <(curl -s https://raw.githubusercontent.com/daveaseeman/laptop/master/laptop)'
# set alias for python 3
alias python=python3
alias pip=pip3
export PATH="$HOME/.bin:$PATH"
export PATH="/usr/local/bin:$PATH"
eval "$(hub alias -s)"
source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh
chruby ruby-2.4.2
prompt_ruby_info() {
if [ -f ".ruby-version" ]; then
cat .ruby-version
fi
}
ucolor=$(tput setaf 33);
wcolor=$(tput setaf 34);
white=$(tput setaf 15);
bold=$(tput setaf bold);
reset=$(tput setaf sgr0);
PS1='\[${ucolor}\]\u'; # `user`
PS1+='\[${white}\]/'; # /
PS1+='\[${bold}\]'; # bold
PS1+='\[${wcolor}\]\W'; # `working directory`
PS1+='\[${reset}\]'; # reset
PS1+='\[${white}\]: '; # white
export PS1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment