From 555aab14e94597fbc38933f09f7fcbca415c68bd Mon Sep 17 00:00:00 2001 From: MountainMan <43313373+MountainMan1312@users.noreply.github.com> Date: Mon, 29 May 2023 05:23:14 -0400 Subject: Make the `>` character in `$PS1` blink --- home/.bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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\]" PS1_COLOR_YELLOW="\[\e[33m\]" PS1_COLOR_BLUE="\[\e[94m\]" PS1_COLOR_CYAN="\[\e[96m\]" +PS1_BLINK_ON="\E[5m" +PS1_BLINK_OFF="\E(B\E\m" if [[ "$(id -u)" == 0 ]]; then # if root PS1_COLOR_MAIN=$PS1_COLOR_RED # set main color red @@ -71,7 +73,7 @@ parse_git_branch() { PS1+="$PS1_COLOR_MAIN[$PS1_COLOR_RESET" # [ PS1+="\$(parse_git_branch) " # (BRANCH) PS1+="$PS1_COLOR_CYAN\w$PS1_COLOR_RESET" # DIR -PS1+="$PS1_COLOR_MAIN] > $PS1_COLOR_RESET" # ] > +PS1+="$PS1_COLOR_MAIN] $PS1_BLINK_ON > $PS1_BLINK_OFF $PS1_COLOR_RESET" # ] > ######################################################################## -- cgit v1.2.3