Commits

Steve Losh  committed 2c4aba2

gtfo zsh

  • Participants
  • Parent commits dea5f01

Comments (0)

Files changed (9)

File zsh/bcvi.zsh

-#!/usr/bin/env zsh
-
-alias ss='bcvi --wrap-ssh -- '
-alias bcvid='dtach -A /tmp/bcvi.socket bcvi --listener'

File zsh/django.zsh

-alias djangotests="PYTHONPATH=..:$PYTHONPATH ./runtests.py --settings=test_sqlite"

File zsh/keys.zsh

-alias key-dan='echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA47M4qmsZT2Ztju1/l/NLVOYKwYSnhTFHG4WuFIc2RfhfQ7Zj1D8Y3renX/uVYtERk6A6axRjAbfqS7Cl73u/UapMnap0a5ysP3AP31+jmEAEfyz3DhellcN08sgIxV5YTC8kpfBi752XhdK9gfVzzxlzQHiGbFMQkMXUnxPsqObdRsAafMFxy7QcZU9s4mL+w2dSWdN24Dg84REAuDP3Rt1P3ORTHbzxLsRAUPG5OTChfjG/ITZYDdmv/g2R0vEcdoSGxGVsja3DTfaUz1kgWtbDA+w0w7VJT6THkz2tkMqwqcRh1w3uG4qvtw2TE84Vj5b73w29kbpcNEcQwtlTtQ== dumbwaiterdesign@Dumbwaiter-Designs-MacBook-Pro.local" | pbcopy'
-alias key-sawyer='echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEApiTmz7vDqoAYU2XwtedoVWOwEIZ9uoiMBoIBYi+ukzmw2Z4t+fKGVuSyAp++LscWppXwoRnHs1tdOPOhX0LcPtOXM1QXlRGen/mfLUDptTXMI/1nkcWTPvF+0rKZd/uBPW4ud+0a47KhnfPh+ShLc1ZVK/iib8GHd1qctKEdrVFgCoEDpAEFxFeM4J3vbBOOVeSODD9jWi0aELPPgHotnoyUElaSP6H9lZmZSw8XHiezPLgxgUBsA1tfWLM5f36+sjWQOtKBRreQ1d6Y5lUMHckwBpQINbsjn6r9ZQuenhVxbCjxpHk+wYwu1yDt0dBcCMV2DCkyjtXzQ74MHzDZoQ== dan@Daniel-Jaouens-iMac.local" | pbcopy'

File zsh/misc.zsh

-alias h=hg
-alias g=git
-
-alias ghcm='ghc --make -optl"-Wl,-read_only_relocs,suppress"'
-alias pbc='pbcopy'
-alias pbp='pbpaste'
-
-alias m='mvim .'
-
-alias f='fab'
-alias fd='fab dev'
-
-alias weechat='weechat-curses'
-
-alias spotlight-off='sudo mdutil -a -i off && sudo mv /System/Library/CoreServices/Search.bundle/ /System/Library/CoreServices/SearchOff.bundle/ && killall SystemUIServer'
-alias spotlight-on='sudo mdutil -a -i on && sudo mv /System/Library/CoreServices/SearchOff.bundle/ /System/Library/CoreServices/Search.bundle/ && killall SystemUIServer'
-alias spotlight-wat='sudo fs_usage -w -f filesys mdworker | grep "open"'
-
-alias mutt='cd ~/Desktop; mutt'
-alias hi='pygmentize'
-
-function cj() { curl "$*" | python -mjson.tool | pygmentize -l javascript; }
-
-function mdown () {
-    (echo '
-        <head>
-            <style>
-                body {
-                    font-family: Georgia;
-                    font-size: 17px;
-                    line-height: 24px;
-                    color: #222;
-                    text-rendering: optimizeLegibility;
-                    width: 670px;
-                    margin: 20px auto;
-                    padding-bottom: 80px;
-                }
-                h1, h2, h3, h4, h5, h6 {
-                    font-weight: normal;
-                    margin-top: 48px;
-                }
-                h1 { font-size: 48px; }
-                h2 {
-                    font-size: 36px;
-                    border-bottom: 6px solid #ddd;
-                    padding: 0 0 6px 0;
-                }
-                h3 {
-                    font-size: 24px;
-                    border-bottom: 6px solid #eee;
-                    padding: 0 0 2px 0;
-                }
-                h4 { font-size: 20px; }
-                pre {
-                    background-color: #f5f5f5;
-                    font: normal 15px Menlo;
-                    line-height: 24px;
-                    padding: 8px 10px;
-                    overflow-x: scroll;
-                }
-            </style>
-        </head>
-    '; markdown $@) | bcat
-}
-
-# Updated verison of SVN.
-export DYLD_LIBRARY_PATH="/opt/subversion/lib:$DYLD_LIBRARY_PATH"
-export PYTHONPATH="/opt/subversion/lib/svn-python:$PYTHONPATH"
-export PATH="/opt/subversion/bin:$PATH"
-
-
-# What the hell did I do the other day?
-function whatthehelldididoon() {
-    for repo in `find . -name '.hg'`
-    do
-        echo $repo
-        h .. -R $repo/.. -d "$1" -u 'Steve Losh'
-    done
-}
-
-alias dv='dvtm -m "^f"'
-alias dvt='dtach -A /tmp/dvtm-session.sock -r winch dvtm -m "^f"'
-alias swank='dtach -A /tmp/dtach-swank.sock -r winch lein swank'
-alias target='dtach -A /tmp/target -r winch zsh'
-alias us-solr='wo unisubs && dtach -A /tmp/dtach-unisubs-solr.sock -r winch python manage.py run_solr --settings=dev_settings'
-
-alias goawayswapfilesyouareswapfilesidontevenneedyou='rm ~/.vim/tmp/swap/*'
-
-function fack () {
-    find . -name $@ | grep -v '/\.hg\|/\.git'
-}
-
-alias collapse="sed -e 's/  */ /g'"
-alias cuts="cut -d' '"
-alias clc="./get-last-commit-url.py | pbc"
-alias count="sort | uniq -c | sort -n"
-
-function psg() {
-    ps auxww | grep --color=always $* | grep -v grep | collapse | cuts -f 2,11-
-}
-
-# sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist
-function gn() {
-    MINS=$1; shift
-
-    if [[ "x$MINS" == "x1" ]]; then
-        echo "one"
-        UNITS="minute"
-    else
-        echo "two"
-        UNITS="minutes"
-    fi
-
-    echo growlnotify -sm "'$*'" | at now + $MINS $UNITS
-}
-
-alias lc='longcat | lolcat'

File zsh/pip.zsh

-#!/usr/bin/env zsh
-
-export PIP_VIRTUALENV_BASE=$WORKON_HOME
-
-PIP_BIN="`which pip`"
-alias pip-sys="$PIP_BIN"
-
-pip() {
-    if [ -n "$VIRTUAL_ENV" ]
-    then $PIP_BIN -E "$VIRTUAL_ENV" "$@"
-    else echo "Not currently in a venv -- use pip-sys to work system-wide."
-    fi
-}

File zsh/tasks.zsh

-#!/usr/bin/env zsh
-
-alias t='~/lib/t/t.py --task-dir="~/Dropbox/tasks" --list=tasks.txt'
-
-alias p='~/lib/t/t.py --task-dir="~/Dropbox/tasks" --list=pack.txt'
-alias pa='~/lib/t/t.py --task-dir="~/Dropbox/tasks" --list=pack-archive'
-
-function packfor() {
-    cp "$HOME/Dropbox/tasks/pack-archive" "$HOME/Dropbox/tasks/pack.txt"
-    touch "$HOME/Dropbox/tasks/.pack.txt.done"
-}

File zsh/urls.zsh

-function urlopen() {
-    open "http://$*"
-}
-
-alias -s com=urlopen
-alias -s org=urlopen
-alias -s net=urlopen
-alias -s io=urlopen

File zsh/vagrant.zsh

-alias v='vagrant'
-alias vs='vagrant suspend'
-alias vp='vagrant provision'
-alias vu='vagrant up'
-alias vh='vagrant halt'
-alias vss='vagrant ssh'
-
-function turnoffthedamnboxvagrant () {
-    VBoxManage list vms | grep "$1" | cut -d' ' -f1 | tr -d '"\n ' | xargs -0 -I BOX VBoxManage controlvm BOX poweroff
-}
-
-alias biv='bcvi --install vagrant'

File zshrc

-export ZSH="$HOME/lib/oh-my-zsh"
-export ZSH_THEME="prose"
-export DISABLE_AUTO_UPDATE="true"
-export OH_MY_ZSH_DEBUG="true"
-plugins=(command-coloring pip fabric lein redis-cli vagrant)
-
-#test -f "$HOME/src/hgd/hd" && export OH_MY_ZSH_HG="$HOME/src/hgd/hd" || export OH_MY_ZSH_HG='hg'
-
-source $ZSH/oh-my-zsh.sh
-
-# Custom options -------------------------------------------------------------
-unsetopt promptcr
-
-# Useful aliases -------------------------------------------------------------
-alias j='z'
-alias fab='fab -i ~/.ssh/stevelosh'
-alias oldgcc='export CC=/usr/bin/gcc-4.0'
-alias tm='tmux -u2'
-alias c='clear'
-alias bp='bpython'
-alias oi='offlineimap'
-
-export DISABLE_AUTO_TITLE="true"
-
-# Environment variables ------------------------------------------------------
-export EDITOR='vim'
-export PATH="$HOME/.gem/ruby/1.8/bin:${PATH}"
-export PATH="$HOME/bin:${PATH}"
-export PATH="$HOME/lib/dotfiles/bin:${PATH}"
-export PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:/opt/local/bin:$PATH"
-export PATH="/opt/subversion/bin:${PATH}"
-export PATH="/usr/local/Cellar/ruby/1.9.2-p290/bin:${PATH}"
-export PATH="/usr/local/Cellar/ruby/1.9.3-p125/bin:${PATH}"
-export GREP_OPTIONS='--color=auto'
-export HISTSIZE=1000
-export HISTFILESIZE=1000
-export HISTCONTROL=erasedups
-export COMMAND_MODE=unix2003
-export RUBYOPT=rubygems
-export CLASSPATH="$CLASSPATH:/usr/local/Cellar/clojure-contrib/1.2.0/clojure-contrib.jar"
-
-# Python variables -----------------------------------------------------------
-export PIP_DOWNLOAD_CACHE="$HOME/.pip/cache"
-export PYTHONSTARTUP="$HOME/.pythonrc.py"
-export WORKON_HOME="${HOME}/lib/virtualenvs"
-export PATH="${PATH}:/Developer/usr/bin/"
-export PATH="${PATH}:/usr/local/share/python/"
-export PATH="${PATH}:$HOME/.lein/bin"
-export PYTHONPATH="$PYTHONPATH:/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages"
-export PYTHONPATH="$PYTHONPATH:/usr/local/lib/python2.7.1/site-packages"
-export PYTHONPATH="$PYTHONPATH:/usr/local/lib/python2.7/site-packages"
-export PYTHONPATH="$PYTHONPATH:/usr/local/lib/python2.6/site-packages"
-export VEW_PATH="$HOME/lib/python/virtualenvwrapper/virtualenvwrapper.sh"
-export VEW_PATH="/usr/local/share/python/virtualenvwrapper.sh"
-export PYTHONPATH="$HOME/lib/python/see:$PYTHONPATH"
-export NODE_PATH="$NODE_PATH:/usr/local/lib/node:/usr/local/lib/node_modules"
-
-# Mercurial variables --------------------------------------------------------
-export PATH="$HOME/lib/hg/hg-stable:$PATH"
-export PYTHONPATH="$HOME/lib/hg/hg-stable:$PYTHONPATH"
-
-# Extra ----------------------------------------------------------------------
-source `brew --prefix`/etc/profile.d/z.sh
-
-# Pre-Prompt Command ---------------------------------------------------------
-function precmd () {
-    z --add "$(pwd -P)"
-}
-
-# Local Settings -------------------------------------------------------------
-if [[ -s $HOME/.zshrc_local ]] ; then source $HOME/.zshrc_local ; fi
-
-# Emacs... -------------------------------------------------------------------
-alias e='emacsclient -nc .'
-
-# GRC
-source "`brew --prefix grc`/etc/grc.bashrc"