diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-08-09 20:27:05 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2024-08-09 20:27:05 +0400 |
commit | 3566fe60645c1e7e7e754a4625a89a13040a2c00 (patch) | |
tree | 7f37dfb80d4e4db75f066942def805c295276b41 /config/bash/bashrc | |
parent | 0ee6935eebda251d3fb4db9c7409ed4d12990ae7 (diff) |
bashrc: error code added to the prompt
Diffstat (limited to 'config/bash/bashrc')
-rw-r--r-- | config/bash/bashrc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/bash/bashrc b/config/bash/bashrc index a07126d..964f657 100644 --- a/config/bash/bashrc +++ b/config/bash/bashrc @@ -5,3 +5,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\]' |