Skip to content

Instantly share code, notes, and snippets.

@yifanz
Last active November 17, 2015 22:52
Show Gist options
  • Save yifanz/3291749 to your computer and use it in GitHub Desktop.
Save yifanz/3291749 to your computer and use it in GitHub Desktop.
Basic setup for bash
# bash.profile
# .bash_profile is executed for login shells
# .bashrc is executed for non-login shells
# However, Mac OS X’s Terminal.app runs a login shell by default for each
# new terminal window, calling .bash_profile instead of .bashrc
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# bash.rc
export CLICOLOR=1
PS1="\t \u@\h[\j] \w>"
alias ls='ls -G'
alias ll='ls -l'
alias lla='ls -la'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment