dot

packages and services management
Log | Files | Refs | README

commit ec65533c87fb416dd5255a402239b44563d41927
parent 393c63ef1fb2f38cf45874f99a79968fd472640c
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Thu, 10 Aug 2017 18:43:29 +0200

shell/profile: status led in the prompt

Diffstat:
Mabduco/bin/abduco-list | 5++++-
Mshell/profile | 4++--
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/abduco/bin/abduco-list b/abduco/bin/abduco-list @@ -1,6 +1,9 @@ # attach to an abduco sessions and manage the names +export LC_COLLATE=C + + mkdir -p "$HOME/.abduco" touch "$HOME/.abduco/names" @@ -42,5 +45,5 @@ then [ "$ABDUCO" != "$1" ] && ABDUCO=$1 exec abduco -e "$e" $A "$hash" "$@" else - sed 's/[^ ]* //' "$HOME/.abduco/names" + sed 's/[^ ]* //' "$HOME/.abduco/names" | sort fi diff --git a/shell/profile b/shell/profile @@ -1,6 +1,6 @@ PS1='$( - [ $? = 0 ] || printf "\033[31;1m'"'"'\033[m\n\r" -)━━━ ' + [ $? = 0 ] && printf "\033[32;1m" || printf "\033[31;1m" +)'"'$(printf '\033[m\n\342\224\201\342\224\201\342\224\201') " PS2=' : ' PS3=' : '