Created
January 18, 2013 19:07
-
-
Save branquito/4567353 to your computer and use it in GitHub Desktop.
BASH -- .bashrc-msysgit-windows
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
## source .bashrc ## | |
alias reload='. .bashrc' | |
## handy shortcuts ## | |
alias h='history' | |
alias h.20='history 20' | |
## create a new set of commands ## | |
alias path='echo -e ${PATH//:/\\n}' | |
alias now='date +"%T"' | |
alias nowtime=now | |
alias nowdate='date +"%d-%m-%Y"' | |
## make life in colors ## | |
alias ls='ls --color=tty' | |
alias c='clear' | |
## use long listing as default ## | |
alias ls='ls -la' | |
## show hidden files ## | |
alias l.='ls -d .* --color=auto' | |
alias ht='cd /c/xampp/htdocs/' | |
alias sub='/c/Program\ Files/Sublime\ Text\ 2/sublime_text.exe' | |
## get rid of command not found ## | |
## and make life easier ## | |
alias cd..='cd ..' | |
alias ..='cd ..' | |
## run git daemon, to serve repository locally ## | |
alias shareproject='git daemon --export-all --base-path=/c/xampp/htdocs' | |
## easy export db using .git/hooks scripts ## | |
alias edb='. .git/hooks/pre-commit' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment