Created
November 8, 2011 18:25
-
-
Save pratul/1348628 to your computer and use it in GitHub Desktop.
My .zshrc
This file contains 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
#### | |
# lut4rp's zshrc | |
# "You could've been anywhere in the world, but you're here with us... And we appreciate that." | |
#### | |
# Aliases | |
alias ls='ls -hG' | |
alias ll='ls -lh' | |
alias la='ls -ah' | |
alias sl=ls | |
alias l=ls | |
alias reload='source /Users/lut4rp/.zshrc' | |
alias emacs='open -a /Applications/Emacs.app/' | |
alias asdf='cvsdiff -up' | |
alias cds='cd /Users/lut4rp/Sites' | |
alias cdg='cd /Users/lut4rp/Code/goonj' | |
alias cdd='cd /Users/lut4rp/Downloads' | |
alias mysql='/Applications/MAMP/Library/bin/mysql -uroot -proot' | |
alias find='find . -name' | |
alias yesitunes='sudo chmod +x /Applications/iTunes.app/Contents/MacOS/iTunes' | |
alias noitunes='sudo chmod -x /Applications/iTunes.app/Contents/MacOS/iTunes' | |
alias chrome='open -a Google\ Chrome --new --args -incognito' | |
alias pulldb='adb pull /data/data/com.devourapp.devour/databases/devour.db .' | |
alias pushdb='adb push devour.db /data/data/com.devourapp.devour/databases/' | |
alias cemacs='/usr/bin/emacs' | |
alias which='which -a' | |
alias colorlogcat='adb logcat \*:W | /Users/lut4rp/Code/colorlogcat.py' | |
alias cde='cd /Users/lut4rp/Code/Eclipse' | |
alias cdc='cd /Users/lut4rp/Code' | |
alias grep='grep --color' | |
## | |
# Drupal | |
## | |
export CVSROOT=:pserver:[email protected]:/cvs/drupal-contrib | |
alias cohead='cvs -z6 -d:pserver:anonymous:[email protected]:/cvs/drupal checkout -d headrupal drupal' | |
export PATH=/Users/lut4rp/Sites/drush:$PATH | |
function dclone { | |
git clone [email protected]:project/$1.git; | |
} | |
# end Drupal | |
# PATH vars | |
PATH=/Developer/usr/bin:/Developer/usr/local/bin:/Developer/usr/sbin:$PATH | |
PATH=/Users/lut4rp/Code/android-sdk/android-sdk-mac_86/platform-tools:/Users/lut4rp/Code/android-sdk/android-sdk-mac_86/tools:$PATH | |
#PATH=/Users/lut4rp/Code/firewallauth:$PATH | |
PATH=/Users/lut4rp/Code:$PATH | |
PATH=/usr/local/bin:$PATH | |
MANPATH=/usr/local/man:/usr/share/man:$MANPATH | |
# ls colors | |
autoload colors; colors; | |
LSCOLORS="Gxfxcxdxbxegedabagacad" | |
# Set options | |
setopt auto_cd | |
setopt histignoredups | |
setopt correct | |
setopt noclobber | |
setopt automenu | |
setopt autolist | |
setopt appendhistory | |
setopt PROMPT_SUBST # allow for functions in the prompt | |
# Autoload zsh functions. | |
fpath=(~/.zsh/functions $fpath) | |
autoload -U ~/.zsh/functions/*(:t) | |
# Enable auto-execution of functions. | |
typeset -ga preexec_functions | |
typeset -ga precmd_functions | |
typeset -ga chpwd_functions | |
# Append git functions needed for prompt. | |
preexec_functions+='preexec_update_git_vars' | |
precmd_functions+='precmd_update_git_vars' | |
chpwd_functions+='chpwd_update_git_vars' | |
# prompt=$'%{${fg[cyan]}%}%B%~%b$(prompt_git_info)%{${fg[default]}%} ' | |
PROMPT=' | |
%{$fg_bold[red]%}%~%{$reset_color%}$(prompt_git_info)%{$reset_color%} | |
>: ' | |
# # Sexeh prompt | |
# autoload promptinit | |
# promptinit | |
# prompt adam2 | |
# Randome | |
export EDITOR=emacsclient | |
export ALTERNATE_EDITOR=vim | |
export VISUAL=emacsclient | |
# History | |
export HISTSIZE=1000 | |
export SAVEHIST=1000 | |
export HISTFILE=~/.zhistory | |
setopt inc_append_history | |
# Portage | |
# export EPREFIX="/lol" | |
# export PATH="$EPREFIX/usr/bin:$EPREFIX/bin:$EPREFIX/tmp/usr/bin:$EPREFIX/tmp/bin:$PATH" | |
#export CHOST="x86_64-apple-darwin10" | |
# gstreamer | |
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH | |
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH | |
export GST_PLUGIN_PATH=/usr/local/lib/gstreamer-0.10:$GST_PLUGIN_PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment