Created
February 13, 2013 03:46
-
-
Save jescalan/4942093 to your computer and use it in GitHub Desktop.
Create a file called .profile at your user root (~/) and paste this in. Then run the command `source ~/.profile` to reload your terminal.
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
# path: | |
PS1='\[\e[0;33m\]⚡\[\e[m\] \[\e[0;31m\]${PWD##*/}\[\e[m\] ' | |
# general shorcuts | |
alias ll="ls -lahG" | |
alias reload="source ~/.profile" | |
alias up="cd .." | |
alias back="cd -" | |
alias desktop="cd ~/Desktop" | |
alias server="python -m SimpleHTTPServer" | |
# handy git shortcuts | |
alias go="git checkout" | |
alias s="echo ''; git status -sb; echo ''" | |
alias stage="git add ." | |
alias c="git commit -am" | |
alias got='git ' | |
alias get='git ' | |
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" | |
alias branch="git branch" | |
alias mpush="git push origin master" | |
alias mpull="git pull origin master" |
I think it's more a trick for spelling mistakes, on the rush you usually spell it wrong and it will work anyways :D
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
whats the difference between these two
alias got='git '
alias get='git '
?