Skip to main content

Initial Setup

Make git bash look like on Ubuntu:

mkdir -p ~/.config/git
cat > ~/.config/git/git-prompt.sh << "EOF"
export PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[0m\]\$ '

# enable color support of ls
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'

alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
EOF

Make arrow keys autocomplete from history

cat > ~/.inputrc << "EOF"
# arrow up
"\e[A":history-search-backward
# arrow down
"\e[B":history-search-forward
EOF