Something went wrong. Try again.
A nixos configuration, forked off of github/mitchellh/nixos-config
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546#---------------------------------------------------------------------------# Prompt#---------------------------------------------------------------------------RED="\033[0;31m"BROWN="\033[0;33m"GREY="\033[0;97m"GREEN="\033[0;32m"BLUE="\033[0;34m"PS_CLEAR="\033[0m"SCREEN_ESC="\033k\033\134"
COLOR1="${BLUE}"COLOR2="${BLUE}"P="\$"
prompt_simple() { unset PROMPT_COMMAND PS1="\W\$(parse_git_branch) → " PS2="> "}
prompt_compact() { unset PROMPT_COMMAND PS1="${COLOR1}${P}${PS_CLEAR} " PS2="> "}
prompt_color() { PS1="${GREEN}\W\$(parse_git_branch) → ${GREY}" PS2="\033[33;1mcontinue \033[0m\033[1m> "}
parse_git_branch() { [ -d .git ] || return 1 git symbolic-ref HEAD 2> /dev/null | sed 's#\(.*\)\/\([^\/]*\)$# \2#'}
# Set default prompt if interactivetest -n "$PS1" &&prompt_color
# Ghostty setup. For testing.# if [ -n "$GHOSTTY_RESOURCES_DIR" ]; then# builtin source "${GHOSTTY_RESOURCES_DIR}/shell-integration/bash/ghostty.bash"# fi