dot

packages and services management
Log | Files | Refs | README

commit 3a459aad8cbb8d0439ad3b0cdd1c261b53df65e5
parent db0b17a6dfc4ed130d6bc7a4402ce0d89049e64d
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Tue, 20 Jun 2017 00:15:07 +0200

simpler prompt

Diffstat:
Mbin/prompt | 12+++---------
Mshell/.profile | 6++----
2 files changed, 5 insertions(+), 13 deletions(-)

diff --git a/bin/prompt b/bin/prompt @@ -1,10 +1,4 @@ -printf '\033[m\n' +echo +echo "${PWD%/}/" $(hostname) ${ABDUCO} $(git-status) ${1#0} +date +'[%H:%M] ' -printf '[%s] %s %s/' "`date +%H:%M`" "`hostname`" "$PWD" - -for i in "`git-status`" "${ABDUCO}" "${1#0}" -do - [ "$i" ] && printf ' %s' "$i" -done - -[ "$USER" = root ] && printf '\n# ' || printf '\n$ ' diff --git a/shell/.profile b/shell/.profile @@ -7,14 +7,12 @@ export EMAIL='mail@josuah.net' export TZ='Europe/Paris' export LC_ALL='en_US.UTF-8' -export EDITOR='mg' -export VISUAL='mg' +export EDITOR='vi' +export VISUAL='vi' export PAGER='less' export MANPAGER='less' export BROWSER='firefox' -export TERM=vt200 - export PS1='$(prompt $?)' export PS2=' ' export PS3=' '