Last active
December 29, 2015 17:09
-
-
Save cesarhdz/7701739 to your computer and use it in GitHub Desktop.
Alias globales para ejecutar Git
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
# Alias para corre git con solo teclear 'g' | |
alias g=git | |
alias gt=git | |
## Alias para subcomandos, utiulizando solo como prefijo g | |
alias gs="git status" | |
alias gf="git flow" | |
alias gfeat="git flow feature" | |
alias gsh="git push" | |
alias gl="git lol" | |
# todo.txt config | |
# see http://dangerisgo.com/blog/2012/09/20/setup-todo-dot-txt-cli-on-osx-with-homebrew-and-dropbox/ | |
## Determinamos el lugar donde se guarda todo.txt | |
TODOTXT_CFG_FILE="${HOME}/Dropbox/todo/todo.cfg" | |
export TODOTXT_CFG_FILE | |
alias td='/c/dev/todo.txt-cli/todo.sh -d ${TODOTXT_CFG_FILE}' | |
## Alias para sublime | |
alias sublime="/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe" | |
## Alias para Punch.py https://github.com/conatus/punch | |
alias punch="/c/Python27/python.exe /c/dev/punch/Punch.py" | |
## bundle exec alias | |
alias be="bundle exec" | |
## Ssh eval | |
register_ids(){ | |
eval `ssh-agent -s` | |
ssh-add | |
} | |
alias ss="register_ids" | |
alias spec="vendor/bin/phpspec" | |
# set PATH so it includes user's private bin if it exists | |
if [ -d "$HOME/bin" ] ; then | |
export PATH="$HOME/bin:$PATH" | |
fi | |
# PS1 With Colors | |
g_br(){ | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
GREEN="\[\033[0;32m\]" | |
YELLOW="\[\033[0;33m\]" | |
EC="\e[m" | |
PS1="${GREEN}\h: \\w${EC}${YELLOW}\$(g_br)${EC}\n$ " | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment