Last active
December 29, 2015 03:09
-
-
Save RasPat1/7605867 to your computer and use it in GitHub Desktop.
shell with aliases that make life just a little bit easier. Z-Plugin : https://github.com/rupa/z suggest using some type of git prompt
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
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.histfile | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
bindkey -e | |
# End of lines configured by zsh-newuser-install | |
# The following lines were added by compinstall | |
zstyle :compinstall filename '/Users/rasesh/.zshrc' | |
autoload -Uz compinit | |
compinit | |
# End of lines added by compinstall | |
# Load z plugin | |
source ~/Programs/z/z.sh | |
# source ~/Programs/zsh-plugins/git-completion.bash | |
# source ~/Programs/zsh-plugins/git-completion.zsh | |
source ~/Programs/git-flow-autocomplete/git-flow-completion.zsh | |
# Load RVM, if you are using it | |
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm | |
EDITOR="/usr/local/bin/subl -w" | |
# PATH=$PATH:$HOME/.rvm/bin: # Add RVM to PATH for scripting | |
PATH=$PATH:~/Sites/svn_sites/mapas/mongodb/bin: | |
source ~/Programs/zsh-git-prompt/zshrc.sh | |
PROMPT='%B%~%b$(git_super_status) | |
%# ' | |
alias mongod='mongod --config ~/Sites/svn_sites/mapas/mongodb/mongod.conf' | |
alias cakephp='~/Sites/mbt/cake/console/cake -app ~/Sites/mbt/app' | |
alias git=hub | |
alias db='mysql -u root mbt' | |
alias gff='git flow feature' | |
alias gcd='git checkout develop' | |
alias gcm='git checkout master' | |
alias ngrokmbt='ngrok -subdomain="mbt-ras" 80' | |
alias cwdev='cd ~/Sites/mbt/sass && compass watch -c config_dev.rb' | |
alias ccdev='cd ~/Sites/mbt/sass && compass compile -c config_dev.rb --force' | |
alias ccngrok='cd ~/Sites/mbt/sass && compass compile -c config_dev_ngrok.rb --force' | |
alias cwngrok='cd ~/Sites/mbt/sass && compass watch -c config_dev_ngrok.rb' | |
alias db='mysql -u root mbt' | |
function gcf() {git checkout feature/$*; } | |
function cj() { popd; cd ~/Sites/mbt/docs; fab compile_javascript; pushd;} | |
function stablengrok() { | |
START=`pwd`; | |
cd ~/Sites; | |
if [ -d "mbt_ngrok" ]; then | |
mv mbt_ngrok mbt_ngrok.bck | |
fi | |
sudo cp -rp mbt mbt_ngrok | |
cd $START; | |
} | |
function list_finished() { | |
P_TAG_NAME=`git for-each-ref --format="%(taggerdate): %(refname)" --sort=-taggerdate --count=100 refs/tags | grep -i -m 1 -o -e "production.*$"`; | |
git log --pretty=oneline $P_TAG_NAME..HEAD | grep -ioe "Merge Branch .* into develop" | grep -o "\'.*/.*\'" > finished_branch_list.txt; | |
} | |
function wifi4eva() { | |
ping -i 3000 google.com 2>&1 >/dev/null; | |
} | |
ZSH_THEME_GIT_PROMPT_NOCACHE=1 | |
# export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules | |
setopt correct; | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/local/opt/php53/bin:$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment