Created
August 20, 2018 18:57
-
-
Save purplejacket/fbdda50eb9fbc2a9e9c19ea5d6a8e031 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias path='ruby -e "puts ENV[%{PATH}].gsub(/:/,%{\n}) # pretty print the PATH"' | |
| alias free_space='df -H && echo' | |
| alias gitjk="history 10 | tail -r | gitjk_cmd" | |
| alias chess='wine "/Users/kai/.wine/drive_c/Aquarium 2015"/Aquarium.exe' | |
| alias chess2='wine "/Users/kai/.wine/drive_c/Program Files/LucasChess"/Lucas.exe' | |
| alias chess3='wine ~/bin/Fritz_Chess_Benchmark.exe' | |
| alias chess4='/Applications/DOSBox.app/Contents/MacOS/DOSBox ~/.wine/drive_c/cm2100/2100.exe' # use alt-enter for full screen and ctrl-F10 for mouse capture/release | |
| alias chess4_5='vim /Users/kai/Library/Preferences/DOSBox\ 0.74\ Preferences' | |
| alias chess5='wine /Users/kai/.wine/drive_c/Arena/Arena.exe &' | |
| alias chess6='/Applications/XBoard.app/Contents/MacOS/XBoard' | |
| alias chess7='/Applications/Raptor.app/Contents/MacOS/raptor &' | |
| alias chess8='/Applications/ScidvsMac.app/Contents/MacOS/scid &' | |
| alias chess9='/Applications/HIARCS\ Chess\ Explorer.app/Contents/MacOS/HIARCSChessExplorer &' | |
| alias chess10='/Users/kai/chess/chessbash/chessba.sh' | |
| alias chess11='/Users/kai/bin/sunfish.py' | |
| alias new_password='ruby -e "puts (((%q[a]..%q[z]).to_a)*3).shuffle[0,(rand(100).to_i)].join + (((0..9).to_a)*3).shuffle[0,(rand(100).to_i)].join"' | |
| alias hist='history | tail -n 15' | |
| alias speed='speedtest-cli' | |
| alias iota='/Users/kai/iota/target/release/iota' | |
| alias editprofile='vim /Users/kai/.bash_profile' | |
| alias editvim='vim /Users/kai/.vimrc' | |
| alias firefoxdev='/Applications/FirefoxDeveloperEdition.app/Contents/MacOS/firefox' | |
| alias factor=gfactor | |
| alias primetime='watch -t -n 1 "gfactor \$(date +%s)"' | |
| alias l='ls -latr' | |
| alias l.='ls -ld .*' | |
| alias ll='ls -laShra' | |
| alias t='tree -d -L 1' | |
| alias ..='cd ..' | |
| alias ...='cd ../..' | |
| alias ....='cd ../../..' | |
| alias .....='cd ../../../..' | |
| alias ......='cd ../../../../..' | |
| alias .......='cd ../../../../../..' | |
| alias ........='cd ../../../../../../..' | |
| export HISTCONTROL=ignoreboth | |
| export HISTSIZE=100000 | |
| HISTTIMEFORMAT='%F %T ' | |
| export HISTTIMEFORMAT | |
| export HISTCONTROL=ignoreboth | |
| export HISTSIZE=100000 | |
| # append to bash_history if Terminal.app quits | |
| shopt -s histappend | |
| export EDITOR='vim' | |
| # Sean Horan gave me this idea, but it doesn't leave the output on the console. | |
| # export PAGER=/usr/local/bin/vimpager | |
| # alias less=$PAGER | |
| # alias zless=$PAGER | |
| # alias cat='vimcat -u /Users/kai/.config/vim/.vimcatrc' | |
| alias cat='ccat' | |
| export LS_OPTIONS='--color=auto' | |
| # Cli Colors | |
| export CLICOLOR=1 | |
| # LSCOLORS from http://www.napolitopia.com/2010/03/lscolors-in-osx-snow-leopard-for-dummies/ | |
| export LSCOLORS='Bxgxfxfxcxdxdxhbadbxbx' | |
| export PATH="/usr/local/opt/texinfo/bin:$PATH" | |
| export PATH=$PATH:~/bin # include my custom utilities | |
| export PATH=$PATH:/usr/local/mysql/bin | |
| export PATH=/usr/local/bin:$PATH # put homebrew path first | |
| export PATH=$PATH:/usr/local/sbin | |
| export PATH=/usr/local/apache/bin:$PATH | |
| export PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting | |
| export PATH=$PATH:./node_modules/.bin | |
| export PATH=$HOME/.cargo/bin:$PATH | |
| export PATH=/Applications/Firefox.app/Contents/MacOS:$PATH | |
| export PATH=$PATH:/Applications/Geany.app/Contents/MacOS | |
| export PATH=/usr/local/opt/sqlite/bin:$PATH | |
| export NVM_DIR="/Users/kai/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
| export PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH" | |
| if [ -f `brew --prefix`/etc/bash_completion ]; then | |
| . `brew --prefix`/etc/bash_completion | |
| fi | |
| ### Added by the Heroku Toolbelt | |
| export PATH="/usr/local/heroku/bin:$PATH" | |
| unset LESSOPEN | |
| unset LESSCLOSE | |
| # prompt - for some more really cool prompt ideas see: | |
| # http://unix.stackexchange.com/questions/124407/what-color-codes-can-i-use-in-my-ps1-prompt | |
| # prompt - ideas come from http://blog.bigdinosaur.org/easy-ps1-colors/ | |
| function prompt { | |
| local BLACK="\[\033[0;30m\]" | |
| local BLACKBOLD="\[\033[1;30m\]" | |
| local RED="\[\033[0;31m\]" | |
| local REDBOLD="\[\033[1;31m\]" | |
| local GREEN="\[\033[0;32m\]" | |
| local GREENBOLD="\[\033[1;32m\]" | |
| local YELLOW="\[\033[0;33m\]" | |
| local YELLOWBOLD="\[\033[1;33m\]" | |
| local BLUE="\[\033[0;34m\]" | |
| local BLUEBOLD="\[\033[1;34m\]" | |
| local PURPLE="\[\033[0;35m\]" | |
| local PURPLEBOLD="\[\033[1;35m\]" | |
| local CYAN="\[\033[0;36m\]" | |
| local CYANBOLD="\[\033[1;36m\]" | |
| local WHITE="\[\033[0;37m\]" | |
| local WHITEBOLD="\[\033[1;37m\]" | |
| local uncolor="\[\033[0m\]" | |
| local g='\[\e[48;5;20m\]' | |
| export PS1="\! $BLUEBOLD\u@$CYANBOLD\h$PURPLEBOLD\w$PURPLE$(__git_ps1)$GREEN\$ " # want to get this to work. | |
| export PS1="$CYAN$g\! $WHITEBOLD\u$YELLOW$g@$CYANBOLD\h$PURPLEBOLD\w $GREEN\$ $uncolor" | |
| } | |
| prompt | |
| # the following is from https://gist.github.com/cocoalabs/2fb7dc2199b0d4bf160364b8e557eb66 | |
| man() { | |
| env \ | |
| LESS_TERMCAP_mb=$'\e[1;31m' \ | |
| LESS_TERMCAP_md=$'\e[1;31m' \ | |
| LESS_TERMCAP_me=$'\e[0m' \ | |
| LESS_TERMCAP_se=$'\e[0m' \ | |
| LESS_TERMCAP_so=$'\e[1;44;33m' \ | |
| LESS_TERMCAP_ue=$'\e[0m' \ | |
| LESS_TERMCAP_us=$'\e[1;32m' \ | |
| man "$@" | |
| } | |
| # The next line updates PATH for the Google Cloud SDK. | |
| source '/Users/kai/google-cloud-sdk/path.bash.inc' | |
| # The next line enables bash completion for gcloud. | |
| source '/Users/kai/google-cloud-sdk/completion.bash.inc' | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
| export PATH="$HOME/.cargo/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment