This is my .bashrc
file. Feel free to clone/copy and reuse as you like.
I use two additional scripts for easier git usage, both of which are placed in my ~/bashscripts
directory. You can download/clone these scripts from their original repositories (linked below).
-
git-completion.bash
: This enables git auto-completion on my git aliases. This allows me to press thetab
key after entering a git alias to auto-complete things, such as branch names. -
bash-git-prompt
: A very handy bash prompt customisation that shows the status of the repository (things like the current branch, number of staged/modified/untracked files, etc.).I have also included my custom theme files for the
bash-git-prompt
. To use these themes, download them to yourbash-git-prompt/themes
directory, and change theGIT_PROMPT_THEME
variable in your.bashrc
file to the name of the theme.- The most recent theme is for a dark background, and is inspired by the bullet train theme for
oh-my-zsh
. This theme requires that you use a Powerline-patched font in your terminal. - The other theme, is my original one-line light-background theme that I used for a while.
- The most recent theme is for a dark background, and is inspired by the bullet train theme for