Last active
December 29, 2017 16:39
-
-
Save zlargon/7184ab11631153bdb9f0 to your computer and use it in GitHub Desktop.
My bash_profile.sh on OS X
This file contains hidden or 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
# 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