diff --git a/bash_profile b/bash_profile deleted file mode 100644 index 56b1728..0000000 --- a/bash_profile +++ /dev/null @@ -1,134 +0,0 @@ -export PATH=$PATH:/opt/local/bin:/usr/local/sbin:~/.cabal/bin -export MANPATH=$MANPATH:/opt/local/share/man:/usr/local/opt/erlang/lib/erlang/man -export INFOPATH=$INFOPATH:/opt/local/share/info -export PYTHONSTARTUP=~/.pythonrc -export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk -alias psg="ps aux | grep -v grep | grep -i -e VSZ -e" -alias ..="cd .." -alias gcc="gcc-4.9" -alias g++="g++-4.9" -alias qmake="/usr/local/Cellar/qt5/5.3.2/bin/qmake" -alias lupdate="/usr/local/Cellar/qt5/5.3.2/bin/lupdate" -alias lrelease="/usr/local/Cellar/qt5/5.3.2/bin/lrelease" -alias python="python3.3" -alias pip2="/usr/local/bin/pip" -alias pip="pip3" -alias pypy="pypy3" -alias cdtan="cd ~/Documents/Code/Github/Detanglement/src/server/detanglement" -alias cdpy="cd ~/Documents/Code/Github/AudioPython" -alias cdl="cd ~/Documents/Github/VetoLC" -alias cdg="cd ~/Documents/Code/Github" -alias cdot="cd ~/Documents/Code/Github/.dotfiles" -alias cdf="cd ~/Documents/Code/FKI" -alias cdh="cd ~/Documents/Code/Github/hiss" -alias cdd="cd ~/Documents/Code/Github/decode" -alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl" -alias dud="du -d 1" -alias loc="cloc *" -alias ls="ls -a" -alias clipboard_clear="echo lol | pbcopy" -alias sloccount="sloccount --addlang makefile --addlang html --multiproject --duplicates --crossdups --autogen" -alias vlc="/Applications/VLC.app/Contents/MacOS/VLC" - -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 ;; - *.tar.xz) tar xzf $1 ;; - *.bz2) bunzip2 $1 ;; - *.rar) unrar x $1 ;; - *.gz) gunzip $1 ;; - *.tar) tar xf $1 ;; - *.tbz2) tar xjf $1 ;; - *.tgz) tar xzf $1 ;; - *.zip) if [ -n $2 ] ; then - unzip $1 -d $2 - else - unzip $1 - fi ;; - *.Z) uncompress $1 ;; - *.7z) 7z x $1 ;; - *) echo "'$1' cannot be extracted via extract()" ;; - esac - else - echo "'$1' is not a valid file" - fi -} - - -makepass(){ - cat /dev/urandom | base64 | head -c 20 - echo '' -} - -mcd(){ -mkdir -p $1 -cd $1 -} - -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'` -} - -update(){ - yellow='\x1B[0;33m' - none='\x1B[0m' - if [[ $1 == '-v' ]] ; then - echo -e "${yellow}Updating homebrew formulae${none}" - brew update - echo -e "${yellow}Updating installed sources(Homebrew)${none}" - brew upgrade outdated - echo -e "${yellow}Updating MacPorts (sudo required)${none}" - sudo port selfupdate - echo -e "${yellow}Updating installed sources(MacPorts)${none}" - sudo port upgrade outdated - else - echo -e "${yellow}Updating homebrew formulae${none}" - brew update &> /dev/null - echo -e "${yellow}Updating installed sources(Homebrew)${none}" - brew upgrade outdated &> /dev/null - echo -e "${yellow}Updating MacPorts (sudo required)${none}" - sudo port selfupdate &> /dev/null - echo -e "${yellow}Updating installed sources(MacPorts)${none}" - sudo port upgrade outdated & /dev/null - fi - sudo port uninstall inactive -} - -save_dotfiles(){ - local DOTPATH=~/Documents/Code/Github/.dotfiles/ - cp ~/.bash_profile ${DOTPATH}bash_profile - cp ~/.ghci ${DOTPATH}ghci - cp ~/.gitignore ${DOTPATH}gitignore - cp ~/.gitconfig ${DOTPATH}gitconfig - cp ~/.pythonrc ${DOTPATH}pythonrc - cp ~/.vimrc ${DOTPATH}vimrc - cp ~/.zshrc ${DOTPATH}zshrc -} -if [ -e /Users/veitheller/.nix-profile/etc/profile.d/nix.sh ]; then . /Users/veitheller/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer - -export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" - -export PATH="$HOME/.cargo/bin:$PATH"