Skip to content

Instantly share code, notes, and snippets.

@wayneeseguin
Forked from jtmkrueger/end of bash profile
Created May 6, 2010 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wayneeseguin/392647 to your computer and use it in GitHub Desktop.
Save wayneeseguin/392647 to your computer and use it in GitHub Desktop.
# ~/.bashrc: executed by bash(1) for non-login shells.
if [[ ! -z "$PS1" ]] ; then
export PS1='\u@\h:\w$ '
umask 022
# Bash Completion
if [[ -f ~/.bash_completion ]] ; then . ~/.bash_completion; fi
# Prompt Settings
if [[ -f ~/.bash_styles ]] ; then . ~/.bash_styles old; fi
#export TERM='xterm-color'
#export NNTPSERVER='news.unina.it'
export EDITOR='pico'
PATH="/usr/local/bin:/usr/include:${PATH}" ; export PATH
# You may uncomment the following lines if you want `ls' to be colorized:
export CLICOLOR='true'
export LSCOLORS="gxfxcxdxbxegedabagacad"
###########################################
# set up aliases
#
alias ll='ls -lagh'
alias l='ls -lagh'
alias grep='grep -n'
alias netconns='netstat -a -f inet'
alias cd..='cd ..'
alias ..='cd ..'
alias work='cd ~/working'
alias dl='cd /volumes/hd4/" downloads"'
alias d4='cd /volumes/hd4'
alias cls='clear'
# alias vi='vim'
# alias c++='g++'
# alias cc='gcc'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
alias ttop='top -ocpu -R -F -s 2 -n30'
############################################
# Prompt Aliases
# see .bash_prompt for further informations
if [[ -f ~/.bash_styles ]] ; then
alias dumb='. ~/.bash_styles dumb'
alias ice='. ~/.bash_styles ice'
alias fire='. ~/.bash_styles fire'
alias nature='. ~/.bash_styles nature'
alias sunshine='. ~/.bash_styles sunshine'
alias dream='. ~/.bash_styles dream'
alias magic='. ~/.bash_styles magic'
alias testp='. ~/.bash_styles testp'
alias old='. ~/.bash_styles old'
fi
source /sw/bin/init.sh
fi
if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi
# MacPorts Installer addition on 2010-02-25_at_10:01:22: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
for a in local $(ls /opt/ | grep -v local | grep -v gentoo); do
FULLPATH=/opt/$a
if [ -x $FULLPATH ]; then
if [ -x $FULLPATH/bin ]; then
export PATH="$FULLPATH/bin:$PATH"
fi
if [ -x $FULLPATH/sbin ]; then
export PATH="$FULLPATH/sbin:$PATH"
fi
if [ -x $FULLPATH/share/aclocal ]; then
export ACLOCAL_FLAGS="-I $FULLPATH/share/aclocal $ACLOCAL_FLAGS"
fi
if [ -x $FULLPATH/man ]; then
export MANPATH="$FULLPATH/man:$MANPATH"
fi
if [ -x $FULLPATH/share/man ]; then
export MANPATH="$FULLPATH/share/man:$MANPATH"
fi
if [ -x $FULLPATH/lib/pkgconfig ]; then
export PKG_CONFIG_PATH="$FULLPATH/lib/pkgconfig/:$PKG_CONFIG_PATH"
fi
fi
done
# Load ~/.bashrc
if [[ -s "$HOME/.bashrc" ]] ; then source "$HOME/.bashrc" ; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment