Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jtmkrueger
Created May 6, 2010 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jtmkrueger/392635 to your computer and use it in GitHub Desktop.
Save jtmkrueger/392635 to your computer and use it in GitHub Desktop.
##
# Your previous /Users/john_t_krueger/.profile file was backed up as /Users/john_t_krueger/.profile.macports-saved_2010-02-25_at_10:01:22
##
# 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
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then source "$HOME/.rvm/scripts/rvm" ; fi
# ~/.bashrc: executed by bash(1) for non-login shells.
export PS1='\u@\h:\w$ '
umask 022
##########################################
#setting up file completion
#
if [ -f ~/.bash_completion ];
then
. ~/.bash_completion;
fi
##########################################
# advanced 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'
############################################
# some aliases to set fancy prompts
# 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
if [[ -s /Users/john_t_krueger/.rvm/scripts/rvm ]] ; then source /Users/john_t_krueger/.rvm/scripts/rvm ; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment