dot

packages and services management
Log | Files | Refs | README

commit 0d87079263f5a27a992de93ac5717c8cf0a01acc
parent beb33ba673a19c19fefbf319f41a040bd0c04825
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 10 Feb 2018 13:00:09 +0100

[add] PS1 in .profile to avoid too many .*shrc

Diffstat:
Mdot/profile | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/dot/profile b/dot/profile @@ -42,3 +42,7 @@ export LESS='-R~X' export LESSHISTFILE='-' export SSH_AUTH_SOCK="${RUN}/ssh-agent" export EXINIT='set ruler' + +export PS1='$([ "${?}" -gt 0 ] && printf "\033[31;1mx\033[m\n\r")' +export PS1="${PS1}$(printf '\033]0;%s\a' '${PWD}') +$(uname -n)$([ "$(whoami)" = 'root' ] && printf '#' || printf '$') "