Skip to content

Instantly share code, notes, and snippets.

@attomos
Created January 20, 2012 13:22
Show Gist options
  • Save attomos/1647362 to your computer and use it in GitHub Desktop.
Save attomos/1647362 to your computer and use it in GitHub Desktop.
My .profile backup
# MacPorts Installer addition on 2011-01-05_at_00:44:12: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# define colors
C_DEFAULT="\[\033[m\]"
C_WHITE="\[\033[1m\]"
C_BLACK="\[\033[30m\]"
C_RED="\[\033[31m\]"
C_GREEN="\[\033[32m\]"
C_YELLOW="\[\033[33m\]"
C_BLUE="\[\033[34m\]"
C_PURPLE="\[\033[35m\]"
C_CYAN="\[\033[36m\]"
C_LIGHTGRAY="\[\033[37m\]"
C_DARKGRAY="\[\033[1;30m\]"
C_LIGHTRED="\[\033[1;31m\]"
C_LIGHTGREEN="\[\033[1;32m\]"
C_LIGHTYELLOW="\[\033[1;33m\]"
#C_LIGHTBLUE="\[\033[1;34m\]"
C_LIGHTPURPLE="\[\033[1;35m\]"
C_LIGHTCYAN="\[\033[1;36m\]"
C_BG_BLACK="\[\033[40m\]"
C_BG_RED="\[\033[41m\]"
C_BG_GREEN="\[\033[42m\]"
C_BG_YELLOW="\[\033[43m\]"
C_BG_BLUE="\[\033[44m\]"
C_BG_PURPLE="\[\033[45m\]"
C_BG_CYAN="\[\033[46m\]"
C_BG_LIGHTGRAY="\[\033[47m\]"
C_LIGHTBLUE="\[\033[1;39m\]"
# set your prompt
export PS1="$C_LIGHTBLUE\u@\h $C_BLUE\W$C_LIGHTCYAN \$$C_DEFAULT "
# Finished adapting your PATH environment variable for use with MacPorts.
# Easier navigation: .., ... and -
alias ..='cd ..'
alias ...='cd ../..'
alias -- -='cd -'
alias ls='ls -G'
# List all files colorized in long format, including dot files
alias la='ls -Gla'
# List only directory
alias lsd='ls -l | grep "^d"'
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx # update on Wednesday, March 22 2011
alias grep='grep --color'
alias programming='cd ~/Documents/Coding\&etc/programming.in.th'
alias c31='cd ~/Documents/WORK/KMUTT/Lecture\ \&\ Assignment/31/CSC\ 4953/lectureSrc'
alias opp='ftp opponent156.no-ip.org'
alias vimrc='sudo vi /usr/share/vim/vimrc'
alias gotoMAMP='cd /Applications/MAMP/htdocs/'
alias gotoBIGJAVA='cd ~/Documents/E-book/practice_file/BIGJAVA'
alias cmdnote='vi ~/BACKUP/MacDesktop/commandline-note'
alias iphotonote='vi ~/BACKUP/MacDesktop/iPhoto-note.md'
alias gotoblog='cd ~/BACKUP/Web\(Blog\ and\ sth\)/tumblr'
alias gotorails='cd ~/Documents/Rails'
alias gotoworkspace='cd ~/Documents/workspace'
alias gotowebserver='cd /opt/local/apache2/htdocs'
alias gotogoogleappengine='cd ~/Documents/GoogleAppEngine'
alias gotodjango='cd ~/Documents/DjangoProjects'
alias gotolearnpythonthehardway='cd ~/Documents/Coding\&etc/learnpythonthehardway'
alias gotorobots='cd ~/robocode/robots/csc340'
alias gitpoa='git push origin atom'
alias gitpog='git push origin gh-pages'
alias gitpom='git push origin master'
alias superdate='ruby ~/Desktop/desktopCode/ruby/superdate.rb'
# Setting PATH for Python 3.1
# The orginal version is saved in .profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.1/bin:${PATH}"
export PATH
export PATH=${PATH}:/Applications/android-sdk-macosx/tools:/Applications/android-sdk-mac_x86/platform-tools
# Setting PATH for MacPython 2.5
# The orginal version is saved in .profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment