My .bashrc

From Colettapedia
Jump to: navigation, search
# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

alias al=alias
alias l='ls -CFA'
alias ll='ls -lA'
alias la='ls -A'
alias rmf='rm -f'
alias rrf='rm -rf'
alias pe=printenv
alias hi=history
alias duh='du -h --max-depth=1 2>/dev/null'

export PATH=$PATH:~/scripts:~/bin
export EDITOR=vim
export PS1="\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ "

FACTOR_ME=1123493641544563075020473265606051185271399633081017738856426788453743605

hide () 
{ 
    mv -v $1 .$1
}

unhide () 
{ 
    NEWNAME=`echo $1 | sed -r "s/\.//"`;
    mv -v $1 $NEWNAME
}

# ~/.bash_profile: executed by bash for login shells.

if [ -e /etc/bash.bashrc ] ; then
  source /etc/bash.bashrc
fi

if [ -e ~/.bashrc ] ; then
  source ~/.bashrc
fi

# Set PATH so it includes user's private bin if it exists
# if [ -d ~/bin ] ; then
#   PATH="~/bin:${PATH}"
# fi

# Set MANPATH so it includes users' private man if it exists
# if [ -d ~/man ]; then
#   MANPATH="~/man:${MANPATH}"
# fi

# Set INFOPATH so it includes users' private info if it exists
# if [ -d ~/info ]; then
#   INFOPATH="~/info:${INFOPATH}"
# fi


##
# Your previous /Users/chris/.bash_profile file was backed up as /Users/chris/.bash_profile.macports-saved_2010-01-27_at_13:17:53
##

# MacPorts Installer addition on 2010-01-27_at_13:17:53: 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.