diff options
| author | Ivan K. Boikov <mail@ikboikov.net> | 2025-01-25 18:30:00 +0100 |
|---|---|---|
| committer | Ivan K. Boikov <mail@ikboikov.net> | 2025-01-25 19:35:42 +0100 |
| commit | 2a58fc37665b2543f63a4ca7f206f5f7ffe7536f (patch) | |
| tree | 6dcbe7713e173792c37010e07bf98a85ed4c6eb5 | |
| parent | a4963135c109bdc29165842560fc281d30b45bc9 (diff) | |
New PS1
| -rw-r--r-- | shell/.config/shell/profile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/shell/.config/shell/profile b/shell/.config/shell/profile index dd9b995..de47ab5 100644 --- a/shell/.config/shell/profile +++ b/shell/.config/shell/profile @@ -179,7 +179,14 @@ source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/pass-completion" parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ [\1]/' } -export PS1="\[\e[01;36m\]\u@\h \[\e[01;32m\]\w\[\e[01;31m\]\$(parse_git_branch)\[\e[36m\] \$\[\e[00m\] " +# \n = newline +# \u = username +# \h = hostname +# \w = working directory path +# \[\e[1;92m\] = sets cursor color to bold green +# \[\e[m\] = sets all following text color back to white, else everything would remain green. +export PS1="\[\e[1;36m\]\u@\h \[\e[1;32m\]\w\[\e[1;31m\]\$(parse_git_branch)\[\e[1;36m\] \$\[\e[m\] " + # start graphical server on user's current tty if not already running. [ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC" |
