Last active
August 29, 2015 14:06
-
-
Save mave007/5fdcf061af988a97e907 to your computer and use it in GitHub Desktop.
mave .bash_profile
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
# .bash_profile mave | |
# Get the aliases and functions | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi | |
# User specific environment and startup programs | |
PATH=$PATH:$HOME/bin: | |
export PATH | |
export CVS_RSH=ssh | |
JED=$(which jed) | |
VIM=$(which vim) | |
if [ -n "${JED}" ] && [ -x ${JED} ] ; then | |
export EDITOR=${JED} | |
elif [ -n "${VIM}" ] && [ -x ${VIM} ] ; then | |
export EDITOR=${VIM} | |
fi | |
export LS_COLORS="no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;37:*.tgz=00;37:*.arj=00;37:*.taz=00;37:*.lzh=00;37:*.zip=00;37:*.z=00;37:*.Z=00;37:*.gz=00;37:*.bz2=00;37:*.bz=00;37:*.tz=00;37:*.iso=00;37:*.deb=00;37:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:*.txt=00;33:*.log=01;33:*.yaml=00;95:*.conf=01;31:*.pcap=00;100" | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxCxegedabagaced | |
if [ -f $(brew --prefix)/etc/bash_completion ] ; then | |
. $(brew --prefix)/etc/bash_completion | |
fi | |
if [ -f ~/perl5/perlbrew/etc/bashrc ] ; then | |
source ~/perl5/perlbrew/etc/bashrc | |
fi | |
platform='unknown' | |
unamestr="$(uname -s)" | |
if [ "$unamestr" == 'Linux' ] ; then | |
platform='linux' | |
elif [ "$unamestr" == 'FreeBSD' ] ; then | |
platform='freebsd' | |
elif [ "$unamestr" == 'FreeBSD' ] ; then | |
platform='freebsd' | |
fi | |
if [ -f ~/.bash_aliases ]; then | |
. ~/.bash_aliases | |
fi | |
# We still rewrite our own aliases | |
if [ $platform == 'linux' ] ; then | |
alias ls='ls --color=auto' | |
alias grep='grep --color' | |
elif [ $platform == 'freebsd' ] ; then | |
alias ls='ls -G' | |
fi | |
alias ll='ls -l' | |
export PATH=/usr/local/bin:$PATH | |
export PATH=/usr/local/sbin:$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment