Skip to content

Instantly share code, notes, and snippets.

@zlargon
Last active December 29, 2017 16:39
Show Gist options
  • Save zlargon/7184ab11631153bdb9f0 to your computer and use it in GitHub Desktop.
Save zlargon/7184ab11631153bdb9f0 to your computer and use it in GitHub Desktop.
My bash_profile.sh on OS X
# enables color in the terminal bash shell
export CLICOLOR=1
# sets up the color scheme for list
export LSCOLORS=ExFxCxDxBxegedabagacad
# enables color for iTerm
export TERM=xterm-color
export TERM="xterm-color"
PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]\$ '
# sets up proper alias commands when called
alias ls='ls -vG'
alias ll='ls -al'
alias la='ls -a'
alias vi='vim'
function mkcd {
if [ ! -n "$1" ]; then
echo "Enter a directory name"
elif [ -d $1 ]; then
echo "\`$1' already exists"
else
mkdir $1 && cd $1
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment