dot

packages and services management
Log | Files | Refs | README

commit 8b0a68f353609f9924a7dacb1ee7e6ef601fb3cb
parent d59762ec198511750fd8153d3ab13e263b811257
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed, 22 Nov 2017 15:12:24 +0100

"\r" tells /bin/sh to start at 0 again!

Diffstat:
Mbin/edit | 2+-
Mdot/bashrc | 3++-
Mdot/exrc | 1+
3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/bin/edit b/bin/edit @@ -1,3 +1,3 @@ #!/bin/sh -exec vi +exec vi "$@" diff --git a/dot/bashrc b/dot/bashrc @@ -1,6 +1,7 @@ PS1='$( - printf "\033[%dm$\033[m " "$([ "$?" = 0 ] && printf 1 || printf 31)" + err=$? printf "\033];%s %s%s\007" "$(uname -n)" "$PWD" "$(git-status)" + printf "\r\033[1%sm$\033[m " "$([ "$err" = 0 ] || printf ";31")" )' PS2=' -- ' diff --git a/dot/exrc b/dot/exrc @@ -1 +1,2 @@ +set ruler map g 1G