This is my .bashrc
file. Feel free to clone/copy and reuse as you like.
IMPORTANT: This repository is no longer maintained. I switched to using Zsh as my default shell in August 2019. You can find my current Zsh configuration in its own repo.
Since commit 4ffd872, my .bashrc
file is used on my work Macbook (and thus the older version of bash that MacOS uses). The last commit that I used on Linux was 06c5849.
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