Skip to content

Instantly share code, notes, and snippets.

View maxstepanyuk's full-sized avatar
418 I'm a teapot

Maksym Stepaniuk - aka purpexe maxstepanyuk

418 I'm a teapot
View GitHub Profile
@maxstepanyuk
maxstepanyuk / git_bash_windows_prompt.sh
Created April 24, 2023 20:18
promt from git bash for windows (PS1 variable)
# setup temporaraly until the next login
# or add this line to your ~/.bashrc file to permanently set your prompt
PS1="\[\033]0;$TITLEPREFIX:$PWD\007\]\n\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$ "
# bash look as found on git bash for windows
# previev
# https://gitforwindows.org/
# when og git bash or any other bash (or zsh or ...) you can run
echo "$PS1"