dot

packages and services management
Log | Files | Refs | README

commit 7e5bccd80365318f66d66d62015e35fecff45d61
parent b7aa12a1377c09d92b780f71b24c8a0aef06fdda
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 14 Jan 2018 08:20:38 +0100

error status in prompt

Diffstat:
Mbin/agenda | 2+-
Mbin/xdg-open | 3++-
Mdot/profile | 5+++--
Mgit/config | 2+-
4 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/bin/agenda b/bin/agenda @@ -131,7 +131,7 @@ BEGIN { b_h_m = substr(beg, 12); e_h_m = substr(end, 12); printf("%s\n%2s %2s %s\n%2s %2s [%s] %s\n", - (b_mth != last_mth) ? ("\n\n[" b_mth "]\n") : "", + (b_mth != last_mth) ? ("\n[" b_mth "]\n") : "", (b_day != last_day) ? (b_day) : (""), b_h_m, line["S"], (b_day != e_day) ? (e_day) : (""), e_h_m, line["C"], line["L"]); str = line["D"] " "; diff --git a/bin/xdg-open b/bin/xdg-open @@ -180,7 +180,8 @@ esac exit ;; (*.jpg|*.jpeg|*.png) - exec feh -. "$1" + feh -. "$1" & + exit ;; (*.gif) exec mplayer -loop 0 "$1" diff --git a/dot/profile b/dot/profile @@ -38,8 +38,9 @@ export LESSHISTFILE=- export SSH_AUTH_SOCK="$HOME/.cache/ssh-agent" export EXINIT='set ruler' -export PS1="$(printf '\033]0;$PWD $(git-status)\a') -${SSH_TTY:+$(uname -n)}] " +export PS1='$([ $? -gt 0 ] && printf "\033[31;1mx\033[m\n\r")'"$( + printf '\033]0;$PWD $(git-status)\a') +${SSH_TTY:+$(uname -n)}$ " pgrep -x ssh-agent || { mkdir -p "${SSH_AUTH_SOCK%/*}" diff --git a/git/config b/git/config @@ -3,7 +3,7 @@ name = Josuah Demangeon [alias] - dog = log --graph --date=short --decorate --format='%h %ad %s' + dog = log --all --graph --date=short --decorate --format='%h %ad %s' stat = log --graph --decorate --stat poule = pull