dot

packages and services management
Log | Files | Refs | README

commit 51f277f26f5a2b410b011213f36322122f590c2f
parent dd570de7d528110391795d708c0734d581d35e1d
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat,  8 Sep 2018 20:31:15 +0200

add a [m]kshrc-compatible prompt

Diffstat:
Adot/kshrc | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/dot/kshrc b/dot/kshrc @@ -0,0 +1,8 @@ +. "$HOME/.profile" + +PS1=$(printf '\033[1;%sm%s \033[37m%s\033[34m%s \033[m' \ + '$(test $? = 0 && echo 32 || echo 31)' \ + '$(date +%T)' \ + '$(uname -n)' \ + "$(test $(whoami) = root && echo '#' || echo '$')" +)