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
Clone this repository into your user-specific configurations folder: $HOME/.config
.
- Via
git clone
:
git clone --depth 1 https://github.com/Hdoc1509/git-bash-config.git ~/.config/git-bash
- Via tiged:
tiged Hdoc1509/git-bash-config ~/.config/git-bash
- Source entry file in your
~/.bashrc
and set your desired prompt theme:
source ~/.config/git-bash/main.sh
# Use set_posh_theme for use an oh-my-osh built-in theme
set_posh_theme tokyonight_storm
# Use set custom_theme for use a theme from custom-themes folder
set_custom_theme blue-owl-mod
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