Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Latest commit

 

History

History
77 lines (48 loc) · 1.95 KB

README.md

File metadata and controls

77 lines (48 loc) · 1.95 KB

git-bash-config

This repository hosts my configuration for git-bash that comes bundled with git-for-windows, so this configuration is only for Windows Systems.

Features

  • Enable symlink
  • Custom prompt themes via oh-my-posh
  • Plugins, aliases and functions from shell-fns

Requirements

Installation

Cloning

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
tiged Hdoc1509/git-bash-config ~/.config/git-bash

Sourcing

  • 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

Customization

All configurations must be placed in ~/.config/git-bash/main.sh file.

  • For set an oh-my-posh theme you should use set_posh_theme or set_custom_theme:
# For oh-my-posh built-in themes
set_posh_theme tokyonight_storm

# For custom themes
set_custom_theme blue-owl-mod

Note: Custom themes have the suffix -mod.

My other software configurations