Created
March 12, 2022 07:16
-
-
Save tyanyaw/c490298ad3530a5cd3fca487aed4eec7 to your computer and use it in GitHub Desktop.
Bash SH Green Blinking promt with PS4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Variable for PS4 | |
COL_NORM="$(tput setaf 9)" | |
COL_GREEN="$(tput setaf 2)" | |
T_BOLD="$(tput bold)" | |
COL_NORMAL="\033[0m" | |
BOLD="\033[1;33m" | |
BLINK="$(tput blink)" | |
#set -x (echo the command), PS4 (change default prompt statement + to green >>>) | |
PS4="\n${T_BOLD}${COL_GREEN}${BLINK}>>> ${COL_NORMAL}"; set -x | |
#ENTER YOUR CODE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment