diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-08-10 12:15:40 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2024-08-10 12:15:40 +0400 |
commit | c7a7bee06467283a7889b156ad7b170ba58b1bc3 (patch) | |
tree | a689ea1d57c6feaf52f0ea8368861d2f5f22220b /config/bash/bashrc | |
parent | 3566fe60645c1e7e7e754a4625a89a13040a2c00 (diff) |
bashrc: prompt changed
Diffstat (limited to 'config/bash/bashrc')
-rw-r--r-- | config/bash/bashrc | 3 |
1 files changed, 2 insertions, 1 deletions
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 % ' + |