Created
October 9, 2013 14:13
-
-
Save 4lun/6901983 to your computer and use it in GitHub Desktop.
Cygwin .bash_profile
This file contains hidden or 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 the users bashrc if it exists | |
| if [ -f "${HOME}/.bashrc" ] ; then | |
| source "${HOME}/.bashrc" | |
| fi | |
| # colour | |
| export PS1="\[\e[36;1m\]\u\[\e[0m\]\[\e[36m\]@\h\[\e[36;1m\]\w \[\e[1;37m\]\$ \[\e[0m\]" | |
| # cd and then ls - Source: http://alias.sh/cd-and-then-ls | |
| function cd () { | |
| builtin cd "$@" && ls; | |
| } | |
| # misc | |
| alias subl='/cygdrive/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe' | |
| alias open='explorer' | |
| alias dev='cd /cygdrive/c/xampp/htdocs' | |
| # general | |
| export EDITOR='subl -w' | |
| # svn | |
| export SVN_MERGE='subl -w' | |
| export SVN_EDITOR='subl -w' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment