Skip to content

Instantly share code, notes, and snippets.

@halidaltuner
Created January 7, 2013 20:32
Show Gist options
  • Save halidaltuner/4478143 to your computer and use it in GitHub Desktop.
Save halidaltuner/4478143 to your computer and use it in GitHub Desktop.
my oh-my-zshrc profile
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="random"
setopt AUTO_CD # cd if no matching command
setopt AUTO_PARAM_SLASH # adds slash at end of tabbed dirs
setopt CHECK_JOBS # check bg jobs on exit
setopt EXTENDED_GLOB # globs #, ~ and ^
setopt EXTENDED_HISTORY # saves timestamps on history
setopt GLOB_DOTS # find dotfiles easier
setopt HASH_CMDS # save cmd location to skip PATH lookup
setopt HIST_EXPIRE_DUPS_FIRST # expire duped history first
setopt HIST_NO_STORE # don't save 'history' cmd in history
setopt INC_APPEND_HISTORY # append history as command are entered
setopt LIST_ROWS_FIRST # completion options left-to-right, top-to-bottom
setopt LIST_TYPES # show file types in list
setopt MARK_DIRS # adds slash to end of completed dirs
setopt NUMERIC_GLOB_SORT # sort numerically first, before alpha
setopt PROMPT_SUBST # sub values in prompt (though it seems to work anyway haha)
setopt RM_STAR_WAIT # pause before confirming rm *
setopt SHARE_HISTORY # share history between open shells
alias ohmyzsh="mate ~/.oh-my-zsh"
CASE_SENSITIVE="true"
DISABLE_AUTO_UPDATE="false"
DISABLE_LS_COLORS="false"
DISABLE_AUTO_TITLE="false"
COMPLETION_WAITING_DOTS="true"
git config --global user.name "Halid Altuner"
git config --global core.editor vim
git config --global merge.tool vimdiff
git config --global color.diff auto
git config --global color.interactive auto
git config --global color.branch auto
git config --global color.status auto
export EDITOR='vim'
plugins=(git rails git textmate ruby rails3 gem screen battery rvm rake)
source $ZSH/oh-my-zsh.sh
alias nginxrestart="/Applications/MNPP/init/./nginx.sh reload"
PATH=~/bin:$PATH
alias ipshow="curl icanhazip.com"
alias elasticStop="launchctl unload -wF ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist"
alias elasticStart="elasticsearch -f -D es.config=/usr/local/Cellar/elasticsearch/0.19.8/config/elasticsearch.yml"
alias sshTunnelStart="ssh [email protected] -D 9999"
alias gitConnect='ssh [email protected]'
alias ssh='ssh -v'
PATH=/Users/halid/DevStuff/qfs/bin/tools:${PATH}
alias aria2c='aria2c -c -j 10 -m 0 --file-allocation=none'
alias wget='wget -c'
alias vimBundleInstall='vim +BundleInstall +qall'
alias grep='/usr/local/Cellar/grep/2.14/bin/grep'
alias sl='/usr/local/bin/sl'
alias ppl='cd /Users/halid/contacts/; ppl'
alias duh='du -h'
alias ls='ls -laFhG'
alias vinit='vagrant init'
alias vup='vagrant up'
alias vssh='vagrant ssh'
alias vboxadd='vagrant box add'
alias vhalt='vagrant halt'
alias vstatus='vagrant status'
alias gitPersonal='git config --global user.email "[email protected]"'
alias gitEba='git config --global user.email "[email protected]"'
alias sr='screen -r'
function man2pdf () {
man -t $1 | open -a /Applications/Preview.app -f
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment