Skip to content

Instantly share code, notes, and snippets.

@maxstepanyuk
Created April 24, 2023 20:18
Show Gist options
  • Save maxstepanyuk/e7509275396203398ed5ab949b9fbcfa to your computer and use it in GitHub Desktop.
Save maxstepanyuk/e7509275396203398ed5ab949b9fbcfa to your computer and use it in GitHub Desktop.
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"
# to get the setup
@maxstepanyuk
Copy link
Author

i cold be wrong. so be careful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment