Last active
August 29, 2015 14:04
-
-
Save thesabbir/7a8c46f184d30fbe1ff9 to your computer and use it in GitHub Desktop.
ZSH config for linux
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
export ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="mrtazz" | |
plugins=(git git-flow history-substring-search) | |
source $ZSH/oh-my-zsh.sh | |
cat ~/local/sign | |
###################### | |
##### Lot's of #### | |
##### Aliases #### | |
###################### | |
#ZSH | |
alias zrc="vim ~/.zshrc" | |
alias reload="source ~/.zshrc" | |
#Django | |
alias django="django-admin.py" | |
alias dj="python manage.py" | |
#Git | |
alias cmit="git commit -m" | |
alias pushto="git push -u origin" | |
alias cb="git checkout" | |
alias @="git add" | |
alias sts="git status" | |
#Node Webikt Packaging | |
alias nwpack="zip -r ../${PWD##*/}.nw *" | |
#Fun | |
alias boro="sudo" | |
#Network | |
alias ping="ping -c 5" | |
alias pserve="python -m SimpleHTTPServer 8000" | |
alias myip="dig +short myip.opendns.com @resolver1.opendns.com" | |
alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'" | |
#X11 Copy PASTE | |
alias pbcopy='xsel --clipboard --input' | |
alias pbpaste='xsel --clipboard --output' | |
######################### | |
##Yeah I am too lazy...## | |
######################### | |
####Install### | |
function install { | |
sudo apt-get install $1 | |
} | |
###Safe Keeping### | |
alias rm="rm -i" | |
alias cp="cp -i" | |
alias mv="mv -i" | |
######### Aliases Ends ######### | |
#RVM Shit | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" | |
#####Environment##### | |
export GOROOT="$HOME/local/opt/go" | |
export GOPATH="$GOROOT/gopath" | |
export ANDROID_HOME="$HOME/local/opt/android-sdk-linux" | |
export GENYMOTION_APP="$HOME/local/genymotion" | |
export GENYMOTION_SHELL="$HOME/local/genymotion" | |
################################ | |
##### Path Configuarations ##### | |
################################ | |
export PATH="$GOROOT/bin:$PATH" # Golang | |
export PATH="$HOME/.composer/vendor/bin:$PATH" # Composer | |
export PATH="$HOME/local/bin:$PATH" # Local Packages Path | |
export PATH="$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH" | |
export PATH="$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH" | |
export PATH="$PATH:$HOME/.rvm/bin:$PATH" # Add RVM to PATH for scripting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment