export PS1="\[\033[1;32m\]\u@\h:\[\033[0m\]\[\033[1;34m\]\w\[\033[0m\]\[\033[1;31m\] \$\[\033[0m\] " export PATH=$PATH:/sbin:/usr/sbin/:~/.bin:.:~/gna/src/ alias sl=/bin/ls alias ls="ls --color=auto" alias grep="grep --color=auto" if [ -f ~/lib/dircolors.rc ] then eval `dircolors -b ~/lib/dircolors.rc` fi alias xterm="xterm -fn 9x15 -bg black -fg white" alias bc="bc -l" #if [[ $0 == '-bash' ]]; then # setterm -blength 0 #fi #xset -b alias lts1="ssh -t eecs \"ssh -t lts1 bash\"" alias mplay="mpv -vo null -ao alsa " alias nmplay="mpv -vo null -ao alsa -af volnorm=2:0.1 " alias iracket="racket -il readline" alias play="echo -ne \"\033]0;VLC\007\"; ratpoison -c \"gnew vlc\"; ratpoison -c \"gmove vlc\"; vlc --no-video -I ncurses --extraintf rc --rc-host 127.0.0.1:7913" alias ripcd="ripit -b 320 --threads 4 -u -o \`pwd\`" function follow() { cp $1 $2 pushd $2 } function mfollow() { mv $1 $2 pushd $2 } alias iph="cd ~/isoptera/public_html" function gitpost() { git commit -a -m "$1" git push } function setup_dirs () { mkdir $1 cd $1 mkdir `cat ../$1.csv | cut -d "," -f 2 | cut -d @ -f 1 | grep -v Email` } function setup_grading () { export COURSE=$1 export ASSIGNMENT=$2 } function get_username () { ls ~/`cat ~/.term`grades/$COURSE/ | grep $1 } function aget_username () { cat ~/`cat ~/.term`grades/$COURSE.csv | cut -d "," -f 1,2 | grep -i $1 | cut -d "," -f 2 | cut -d "@" -f 1 | sed "s/ //g" } function comfile () { echo ~/`cat ~/.term`grades/$COURSE/$(aget_username $1)/$ASSIGNMENT } function comment () { vim `comfile $1` } function getodac () { pacmd list-sinks | grep -i odac | grep "name:" | cut -f 2 -d "<" | sed "s/>//g" } function cpcom () { echo cp `comfile $1` `comfile $2` cp `comfile $1` `comfile $2` } alias audiosource="pacmd set-default-sink \`getodac\`" alias tgrep="grep --color=auto -I -d skip "