aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMountainMan <43313373+MountainMan1312@users.noreply.github.com>2023-05-29 05:23:14 -0400
committerMountainMan <43313373+MountainMan1312@users.noreply.github.com>2023-05-29 05:23:14 -0400
commit555aab14e94597fbc38933f09f7fcbca415c68bd (patch)
tree74928624fe946ef259e8e9bcc66df94dc4790c37
parentFix `.bashrc` for Emacs Vterm (again) (diff)
downloaddotfiles.old-555aab14e94597fbc38933f09f7fcbca415c68bd.tar.gz
dotfiles.old-555aab14e94597fbc38933f09f7fcbca415c68bd.tar.bz2
dotfiles.old-555aab14e94597fbc38933f09f7fcbca415c68bd.zip
Make the `>` character in `$PS1` blink
-rw-r--r--home/.bashrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/home/.bashrc b/home/.bashrc
index 620ea76..cc5f089 100644
--- a/home/.bashrc
+++ b/home/.bashrc
@@ -32,6 +32,8 @@ PS1_COLOR_RED="\[\e[91m\]"
32PS1_COLOR_YELLOW="\[\e[33m\]" 32PS1_COLOR_YELLOW="\[\e[33m\]"
33PS1_COLOR_BLUE="\[\e[94m\]" 33PS1_COLOR_BLUE="\[\e[94m\]"
34PS1_COLOR_CYAN="\[\e[96m\]" 34PS1_COLOR_CYAN="\[\e[96m\]"
35PS1_BLINK_ON="\E[5m"
36PS1_BLINK_OFF="\E(B\E\m"
35 37
36if [[ "$(id -u)" == 0 ]]; then # if root 38if [[ "$(id -u)" == 0 ]]; then # if root
37 PS1_COLOR_MAIN=$PS1_COLOR_RED # set main color red 39 PS1_COLOR_MAIN=$PS1_COLOR_RED # set main color red
@@ -71,7 +73,7 @@ parse_git_branch() {
71PS1+="$PS1_COLOR_MAIN[$PS1_COLOR_RESET" # [ 73PS1+="$PS1_COLOR_MAIN[$PS1_COLOR_RESET" # [
72PS1+="\$(parse_git_branch) " # (BRANCH) 74PS1+="\$(parse_git_branch) " # (BRANCH)
73PS1+="$PS1_COLOR_CYAN\w$PS1_COLOR_RESET" # DIR 75PS1+="$PS1_COLOR_CYAN\w$PS1_COLOR_RESET" # DIR
74PS1+="$PS1_COLOR_MAIN] > $PS1_COLOR_RESET" # ] > 76PS1+="$PS1_COLOR_MAIN] $PS1_BLINK_ON > $PS1_BLINK_OFF $PS1_COLOR_RESET" # ] >
75######################################################################## 77########################################################################
76 78
77 79