Skip to content

Instantly share code, notes, and snippets.

@4lun
Created October 9, 2013 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4lun/6901983 to your computer and use it in GitHub Desktop.
Save 4lun/6901983 to your computer and use it in GitHub Desktop.
Cygwin .bash_profile
# 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