Created
July 22, 2019 08:33
-
-
Save nunogrl/f52e36b2dc01514c6321d9ff9206b66d to your computer and use it in GitHub Desktop.
git-bash profile on Windows machines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BASHCONFIGFILE="$HOME/.minttyrc" | |
GITCONFIGFILE="$HOME/.gitconfig" | |
echo "Ensure that Inconsolata is installed" | |
echo "adding terminal config file" | |
cat << EOFBASH > $BASHCONFIGFILE | |
Font=Inconsolata | |
FontHeight=12 | |
BackgroundColour=106,106,106 | |
Transparency=off | |
ForegroundColour=255,255,255 | |
ThemeFile=nord | |
EOFBASH | |
echo "adding git config file" | |
cat <<- EOFGIT >> $GITCONFIGFILE | |
[alias] | |
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
lg = !"git lg1" | |
diffc = diff --color-words=. | |
[core] | |
editor = vim | |
EOFGIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment