From c7a7bee06467283a7889b156ad7b170ba58b1bc3 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Sat, 10 Aug 2024 12:15:40 +0400 Subject: bashrc: prompt changed --- config/bash/bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/bash/bashrc') diff --git a/config/bash/bashrc b/config/bash/bashrc index 964f657..c2ce35e 100644 --- a/config/bash/bashrc +++ b/config/bash/bashrc @@ -6,4 +6,5 @@ shopt -s autocd # automatically cd into typed directory alias vi=vim alias vi=nvim -PS1='\u@\H \w\[\e[0;$(($?==0?0:91))m\] % \[\e[0m\]' +PS1='\e[01;31m$(code=${?##0};echo ${code:+[${code}]" "})\e[00m\u@\H \w % ' + -- cgit v1.2.3