Skip to content

Instantly share code, notes, and snippets.

@tarex
Created August 14, 2012 14:12
Show Gist options
  • Save tarex/3349625 to your computer and use it in GitHub Desktop.
Save tarex/3349625 to your computer and use it in GitHub Desktop.
my .zshrc
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="robbyrussell"
# ZSH_THEME="blinks"
# ZSH_THEME ="prose"
#doubleend.zsh-theme
ZSH_THEME="doubleend"
#ZSH_THEME="paul"
#ZSH_THEME="tareq"
#ZSH_THEME="sunrise"
# Example aliases
alias zconfig="subl ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias ohmyzsh="subl ~/.oh-my-zsh"
#my_own_by_tareq
alias sites="cd /Applications/MAMP/htdocs"
alias sitesb="cd /Applications/MAMP/htdocs/backbone"
####################################
# normal alias #
####################################
alias desk="cd ~/Desktop/"
alias zzsh="cd ~/.oh-my-zsh/themes"
alias server="open http://localhost:8000 && python -m SimpleHTTPServer"
alias c_ext="cd library/Application\ support/Google/Chrome/Default/Extensions"
####################################
# git related #
####################################
alias stbkbn="git clone https://github.com/tarex/RequireJS-Backbone-Starter.git"
####################################
# laravel #
####################################
#bob
alias bob="php artisan bob::build"
#normal laravel
alias keygen="php artisan key:generate"
alias loil="php artisan"
#laravel jeffrey_way
alias g:c="php artisan generate:controller"
alias g:m="php artisan generate:model"
alias g:v="php artisan generate:view"
alias g:mig="php artisan generate:migration"
alias g:a="php artisan generate:assets"
alias g:t="php artisan generate:test"
alias g:r="php artisan generate:resource"
####################################
# FuelPHP #
####################################
#fuelphp related oil
alias oil="php oil"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
####################################
# function #
####################################
#chrome index.html
function chrome(){
open $@ --args --allow-file-access-from-files
}
####################################
# node #
####################################
#node
[[ -r $NVM_DIR/bash_completion ]] && . $NVM_DIR/bash_completion
#color
#end of color
# Set Titlebar and Prompt
TITLEBAR='\e]0;\h: ${PWD/$HOME/~}\a'
PS1="${TITLEBAR}${WHITE}[${POWDER_BLUE}\u@\h${WHITE}]${NORMAL}$ "
# Color listing
#eval $(dircolors ~/.dir_colors)
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git sublime osx github)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
export PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment