Skip to content

Instantly share code, notes, and snippets.

@MugunthKumar
Created December 25, 2010 05:17
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 MugunthKumar/754699 to your computer and use it in GitHub Desktop.
Save MugunthKumar/754699 to your computer and use it in GitHub Desktop.
Git Bash on Windows
# Aliases from here
# http://stevehodgkiss.com/blog/2010/01/27/speed-up-your-git-workflow-with-bash-aliases/
#
function prompt {
local CYAN="\[\033[1;36m\]"
local GREEN="\[\033[1;32m\]"
local NO_COLOUR="\[\033[0m\]"
local TITLEBAR='\[\033]0;\u@\h\007\]'
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
# export GIT_PS1_SHOWUPSTREAM=auto
export GIT_PS1_SHOWSTASHSTATE=true
# this prompt is quite minimal. If you want a full directory path, change the \W to \w (uppercase to lowercase)
PS1="$TITLEBAR\n$CYAN\W $GREEN\$(__git_ps1 '(%s)')$NO_COLOUR$"
}
# cd
alias ..='cd ..'
# ls
alias ls="ls -F"
alias l="ls -lAh"
alias ll="ls -l"
alias la='ls -A'
# directory shortcuts
alias wp='cd "C:\Users\Mugunth Kumar\Documents\Visual Studio 2010\Projects"'
wp
prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment