This repository hosts my configuration for git-bash
that comes bundled with git-for-windows, so this configuration is only for Windows Systems.
- Enable symlink
- Custom prompt themes via oh-my-posh
- Plugins, aliases and functions from shell-fns
- shell-fns
- oh-my-posh with manual installation
Clone this repository into your user-specific configurations folder: $HOME/.config
:
git clone --depth 1 https://github.com/Hdoc1509/git-bash-config.git ~/.config/git-bash
- Source entry file in your
~/.bashrc
file:
source ~/.config/git-bash/main.sh
NOTE: Custom themes have the suffix -mod
.
- Be sure to source
~/.bashrc
file from your~/.bash_profile
file:
source ~/.bashrc
- Then, open
cmd
and make a simlink for the~/.minttyrc
file:
mklink %userprofile%\.minttyrc %userprofile%\.config\git-bash\.minttyrc
All configurations must be placed in ~/.config/git-bash/main.sh
file.
- For set an
oh-my-posh
theme you should useset_posh_theme
orset_custom_theme
functions:
# For oh-my-posh built-in themes
set_posh_theme tokyonight_storm
# For oh-my-posh custom themes
set_custom_theme blue-owl-mod
Note: Custom themes have the suffix -mod
.
- Configurations for shell-fns must be at the end.
- Run the following commands for update your local copies of
git-bash-config
andshell-fns
:
git -C ~/.config/git-bash pull
git -C ~/.config/shell-fns pull
- Or run the following built-in alias:
gbCfgU
All updates will take effect after restarting git-bash
.