Created
April 24, 2023 20:18
-
-
Save maxstepanyuk/e7509275396203398ed5ab949b9fbcfa to your computer and use it in GitHub Desktop.
promt from git bash for windows (PS1 variable)
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
# 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" | |
# to get the setup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i cold be wrong. so be careful