Initial commit; latest versions
This commit is contained in:
60
bash_profile
Normal file
60
bash_profile
Normal file
@@ -0,0 +1,60 @@
|
||||
export PATH=$PATH:/opt/local/bin:/usr/local/lib/io
|
||||
export MANPATH=$MANPATH:/opt/local/share/man
|
||||
export INFOPATH=$INFOPATH:/opt/local/share/info
|
||||
alias gcc="gcc-mp-4.9"
|
||||
alias g++="g++-mp-4.9"
|
||||
alias qmake4="/opt/local/bin/qmake"
|
||||
alias qmake="/usr/local/Qt-5.3.0/bin/qmake"
|
||||
alias python="python3.3"
|
||||
alias cdtan="cd ~/Documents/Code/Github/Detanglement/src"
|
||||
alias cdpy="cd ~/Documents/Code/Github/AudioPython"
|
||||
alias cdpc="cd ~/Documents/Code/PrivCode/"
|
||||
alias cdl="cd ~/Documents/Code/LiveCodingEditor"
|
||||
alias cdg="cd ~/Documents/Code/Github"
|
||||
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
|
||||
|
||||
case $TERM in
|
||||
screen*)
|
||||
SCREENTITLE='\[\ek\e\\\]\[\ek\W\e\\\]'
|
||||
;;
|
||||
*)
|
||||
SCREENTITLE=''
|
||||
;;
|
||||
esac
|
||||
export PS1="${SCREENTITLE}[\u@\h \W]\$ "
|
||||
|
||||
extract(){
|
||||
if [ -f $1 ] ; then
|
||||
case $1 in
|
||||
*.tar.bz2) tar xjf $1 ;;
|
||||
*.tar.gz) tar xzf $1 ;;
|
||||
*.bz2) bunzip2 $1 ;;
|
||||
*.rar) rar x $1 ;;
|
||||
*.gz) gunzip $1 ;;
|
||||
*.tar) tar xf $1 ;;
|
||||
*.tbz2) tar xjf $1 ;;
|
||||
*.tgz) tar xzf $1 ;;
|
||||
*.zip) unzip $1 ;;
|
||||
*.Z) uncompress $1 ;;
|
||||
*.7z) 7z x $1 ;;
|
||||
*) echo "'$1' cannot be extracted via extract()" ;;
|
||||
esac
|
||||
else
|
||||
echo "'$1' is not a valid file"
|
||||
fi
|
||||
}
|
||||
|
||||
netinfo(){
|
||||
echo "--------------- Network Information ---------------"
|
||||
/sbin/ifconfig | awk /'inet addr/ {print $2}'
|
||||
/sbin/ifconfig | awk /'Bcast/ {print $3}'
|
||||
/sbin/ifconfig | awk /'inet addr/ {print $4}'
|
||||
/sbin/ifconfig | awk /'HWaddr/ {print $4,$5}'
|
||||
myip=`lynx -dump -hiddenlinks=ignore -nolist http://checkip.dyndns.org:8245/ | sed '/^$/d; s/^[ ]*//g; s/[ ]*$//g' `
|
||||
echo "${myip}"
|
||||
echo "---------------------------------------------------"
|
||||
}
|
||||
|
||||
pinfo(){
|
||||
top -pid `pgrep $1 | tr "\\n" "," | sed 's/,$//' | sed -e's/,/ -pid /g'`
|
||||
}
|
Reference in New Issue
Block a user