Last active
August 29, 2015 14:02
-
-
Save otterthecat/ddb206a67dfdaa50e817 to your computer and use it in GitHub Desktop.
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
function gh(){ | |
cd ~/projects/github/$1 | |
} | |
function site(){ | |
cd ~/projects/remotes/$1 | |
} | |
function no(){ | |
if test "$#" == "1" | |
then | |
node "$1" | |
else | |
node app.js | |
fi | |
} | |
## GIT | |
####################################################### | |
alias gl='git log --oneline --decorate' | |
alias glg='git log --oneline --decorate --graph' | |
alias ga='git add -A .' | |
alias gs='git status' | |
alias gf='git fetch' | |
alias gp='git pull' | |
alias gb='git branch' | |
alias gr='git remote -v' | |
alias ghp='git push github master' | |
## KARMA | |
####################################################### | |
alias k='karma' | |
alias kw='karma --auto-watch' | |
## NPM/NODE | |
####################################################### | |
alias lnpm='npm list -g --depth=0' | |
alias ni='sudo npm install' | |
alias nu='sudo npm update' | |
alias nt='npm test' | |
## UTILS | |
####################################################### | |
alias rebash='source ~/.bashrc' | |
alias home='cd ~' | |
alias tdd='~/scripts/tmux-tdd.sh' | |
## REMOTES | |
####################################################### | |
## Your SSH paths here | |
## FANCY | |
####################################################### | |
source ~/scripts/git-prompt | |
GIT_PS1_SHOWDIRTYSTATE=true | |
GIT_PS1_SHOWUNTRACKEDFILES=true | |
GIT_PS1_SHOWUPSTREAM="verbose git" | |
PS1="\[\e[1;30m\][\t]\[\e[m\] \[\e[1;32m\]\u@\h\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[0;35m\]\$(__git_ps1 '(%s) ')\[\e[m\]\[\e[1;34m\]\$ \[\e[m\]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment