# Source Prezto. if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" fi unsetopt CORRECT # Now we can pipe to multiple outputs! setopt MULTIOS # This makes cd=pushd setopt AUTO_PUSHD # This will use named dirs when possible setopt AUTO_NAME_DIRS # If we have a glob this will expand it setopt GLOB_COMPLETE # use magic (this is default, but it can't hurt!) setopt ZLE setopt NO_HUP # setopt IGNORE_EOF # If I could disable Ctrl-s completely I would! setopt NO_FLOW_CONTROL unsetopt normstarsilent ## Keep echo "station" > station from clobbering station #setopt NO_CLOBBER setopt CLOBBER # No ! voodoo unsetopt bang_hist # Case insensitive globbing setopt NO_CASE_GLOB # Be Reasonable! setopt NUMERIC_GLOB_SORT # I don't know why I never set this before. setopt EXTENDED_GLOB # hows about arrays be awesome? (that is, frew${cool}frew has frew surrounding all the variables, not just first and last setopt RC_EXPAND_PARAM # Who doesn't want home and end to work? bindkey '\e[1~' beginning-of-line bindkey '\e[4~' end-of-line bindkey "\eOH" beginning-of-line bindkey "\eOF" end-of-line # --------------------------------------- ALIASES -------------------------------------------------- # aliases alias g="git" alias a="git add --all :/" alias b="git branch" alias c="git commit -am" alias ch="git checkout" alias pull="git pull" # alias m="git merge --no-ff" alias rb="git reset HEAD --hard" alias s="git status" alias st="git stash" alias g5="git5" alias e="git5 export" alias m="git5 merge --no-ff" alias ma="git5 mail -m" alias push="git5 submit -xy" # alias push="git submit -xy" alias dc="a && c \"dummy comment\"" alias zshconfig="subl ~/.zshrc" alias zshreload="exec zsh" alias tarc="tar cvzf" alias rcp="rsync --partial --progress --append --rsh=ssh -r -h" alias rmv="rsync --partial --progress --append --rsh=ssh -r -h --remove-sent-files" alias pythonserve="sudo python -m SimpleHTTPServer 80" # replace alias sg='perl -0pe' alias clbin="curl -F 'clbin=<-' https://clbin.com" alias afs="unmount-abra0; mount-abra0;" alias .g='git --git-dir=$HOME/.dotgit/ --work-tree=$HOME' function .g-init() { git init --bare $HOME/.dotgit .g config --local status.showUntrackedFiles no .g remote add origin ssh://dedi/root/.dotgit } function twitch() { livestreamer "http://www.twitch.tv/$1" source &! } function is_local() { [[ $(hostname) == "abra0.local" ]] } function make_user() { if is_local; then echo "You're local" return 1 fi adduser --system --shell /bin/zsh --disabled-password $1 || return 1 wget abra.me/.dotfiles.tar.gz -O /home/$1/.dotfiles.tar.gz tar xf /home/$1/.dotfiles.tar.gz -C /home/$1 chown $1:nogroup -R /home/$1/ } fucntion hihi() { cd a } # ----------------------------------- END ALIASES -------------------------------------------------- export EDITOR=/usr/bin/vim export PATH=$PATH:$HOME/bin:$HOME/brew/bin # added by travis gem [ -f /Users/abra/.travis/travis.sh ] && source /Users/abra/.travis/travis.sh