From ab7395bb16d175f64817c149b0310c0f9b425184 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 31 Jan 2025 17:40:12 +0000 Subject: [sh] Make git PS1 faster --- home/.config/sh/envrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'home') diff --git a/home/.config/sh/envrc b/home/.config/sh/envrc index 64d85d7..d06a12f 100644 --- a/home/.config/sh/envrc +++ b/home/.config/sh/envrc @@ -139,8 +139,12 @@ export vblank_mode=0 # detailed git PS1 export GIT_PS1_SHOWDIRTYSTATE=1 export GIT_PS1_SHOWSTASHSTATE=1 -export GIT_PS1_SHOWUNTRACKEDFILES=1 -export GIT_PS1_SHOWUPSTREAM="auto" +unset GIT_PS1_SHOWUNTRACKEDFILES +export GIT_PS1_SHOWUPSTREAM="verbose" +export GIT_PS1_SHOWCONFLICTSTATE="yes" +export GIT_PS1_DESCRIBE_STYLE="branch" +export GIT_PS1_SHOWCOLORHINTS=1 +export GIT_PS1_HIDE_IF_PWD_IGNORED=1 # only set XAUTHORITY when not logging from ssh, since it breaks xauth [ "$XDG_RUNTIME_DIR" ] && export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" -- cgit v1.2.3-70-g09d2