Skip to content

Instantly share code, notes, and snippets.

@lucko
Created June 19, 2017 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucko/3c3d0d095cccfb6fc0b266e088e6aaed to your computer and use it in GitHub Desktop.
Save lucko/3c3d0d095cccfb6fc0b266e088e6aaed to your computer and use it in GitHub Desktop.

~/.minttyrc

BoldAsFont=-1
Font=DejaVu Sans Mono
FontHeight=10
BoldAsColour=yes
Locale=C
Charset=UTF-8
FontSmoothing=partial
FontWeight=400
FontIsBold=no
CursorType=line
Transparency=off
MiddleClickAction=void
RightClickAction=paste
ForegroundColour=248,248,242
BackgroundColour=40,42,54
Black=0,0,0
BoldBlack=85,87,83
Red=255,85,85
BoldRed=255,110,103
Green=80,250,123
BoldGreen=90,247,142
Yellow=241,250,140
BoldYellow=244,249,157
Blue=202,169,250
BoldBlue=202,169,250
Magenta=255,121,198
BoldMagenta=255,146,208
Cyan=139,233,253
BoldCyan=154,237,254
White=191,191,191
BoldWhite=230,230,230

/c/Program Files/Git/etc/profile.d/git-prompt.sh

if test -f /etc/profile.d/git-sdk.sh
then
	TITLEPREFIX=SDK-${MSYSTEM#MINGW}
else
	TITLEPREFIX=$MSYSTEM
fi

PS1='\[\033]0;$TITLEPREFIX:${PWD//[^[:ascii:]]/?}\007\]' # set window title
PS1="$PS1"'\n'                 # new line
PS1="$PS1"'\[\e]0;\u@\h: \w\a\]\[\033[1;30m\][\t]\[\033[1;32m\] \u@\h\[\033[00m\]:\[\033[1;34m\]\w\[\033[00m\]'

if test -z "$WINELOADERNOEXEC"
then
	GIT_EXEC_PATH="$(git --exec-path 2>/dev/null)"
	COMPLETION_PATH="${GIT_EXEC_PATH%/libexec/git-core}"
	COMPLETION_PATH="${COMPLETION_PATH%/lib/git-core}"
	COMPLETION_PATH="$COMPLETION_PATH/share/git/completion"
	if test -f "$COMPLETION_PATH/git-prompt.sh"
	then
		. "$COMPLETION_PATH/git-completion.bash"
		. "$COMPLETION_PATH/git-prompt.sh"
		PS1="$PS1"'\[\033[36m\]'  # change color to cyan
		PS1="$PS1"'`__git_ps1`'   # bash function
	fi
fi
PS1="$PS1"'\[\033[0m\]'        # change color
PS1="$PS1"' $ '                 # prompt: always $
MSYS2_PS1="$PS1"               # for detection by MSYS2 SDK's bash.basrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment