I moved my configuration for bash and zsh to my dotfiles repo
This repository hosts my configuration for git-bash that comes bundled with git-for-windows, so this configuration is only for Windows Systems.
- Minttyas terminal emulator
- Enabled symlink
- Custom prompt themes via oh-my-posh
- Plugins, aliases and functions from shell-fns
- git-for-windows with minttyas terminal emulator.
- shell-fns
- oh-my-posh with manual installation
- FiraCode Nerd Fontor another Nerd font
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 ~/.bashrcfile:
source ~/.config/git-bash/main.sh- Be sure to source ~/.bashrcfile from your~/.bash_profilefile:
source ~/.bashrc- Then, open cmdand make a simlink for the~/.minttyrcfile:
mklink %userprofile%\.minttyrc %userprofile%\.config\git-bash\.minttyrc| Alias | Description | 
|---|---|
| gbCf | Change directory to ~/.config/git-bashand open editor setted inSF_EDITORvariable | 
| gbCfU | Update your local copies of git-bash-configandshell-fns. You will need to restartgit-bash | 
| srcBash | Source your ~/.bashrcfile | 
All configurations related to prompt-theme and shell-fns plugins must be placed in ~/.config/git-bash/main.sh file.
- For set an oh-my-posh, theme you should useset_posh_themeorset_custom_themefunctions:
# For oh-my-posh built-in themes
set_posh_theme tokyonight_storm
# For oh-my-posh custom themes
set_custom_theme blue-owl-modNote: Custom themes have the suffix -mod.
- Configurations for shell-fns must be at the end of main.sh.
Options for Mintty must be setted in .minttyrc file.