Skip to content

Instantly share code, notes, and snippets.

@jescalan
Created February 13, 2013 03:46
Show Gist options
  • Save jescalan/4942093 to your computer and use it in GitHub Desktop.
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.
# 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"
@technomad
Copy link

whats the difference between these two
alias got='git '
alias get='git '
?

@rkparra
Copy link

rkparra commented Feb 25, 2013

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