From 258408945f253f36bc4fc96877c50c331bddf8d1 Mon Sep 17 00:00:00 2001 From: ditaajipratama Date: Tue, 6 Aug 2024 13:35:23 +0700 Subject: [PATCH] Update bashrc-terminal-style.sh --- shell/bashrc-terminal-style.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 shell/bashrc-terminal-style.sh diff --git a/shell/bashrc-terminal-style.sh b/shell/bashrc-terminal-style.sh new file mode 100644 index 0000000..83ae102 --- /dev/null +++ b/shell/bashrc-terminal-style.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Define the line to be added to ~/.bashrc +NEW_PS1='export PS1="\[$(tput bold)\]\[\033[38;5;10m\]\u\[$(tput sgr0)\]@\H [\[$(tput sgr0)\]\[\033[38;5;13m\]\w\[$(tput sgr0)\]] \\$ \[$(tput sgr0)\]"' + +# Add the line to ~/.bashrc +echo "$NEW_PS1" >> ~/.bashrc + +# Source ~/.bashrc to apply changes immediately +source ~/.bashrc + +echo "Custom prompt added to ~/.bashrc. Changes applied."