From 2bffa44c20313a9a9b0e39df852f023c2f6e2191 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 8 Nov 2024 07:54:36 +0200 Subject: feat(bash): Change cursor color when we have no write access in the current folder --- .bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bashrc b/.bashrc index 64a7efd..b6f2ad9 100644 --- a/.bashrc +++ b/.bashrc @@ -171,12 +171,14 @@ } ps_precursor() { + [ ! -w . ] && colors_prt "$PS_WARN" "$PS_BG" if [ -n "$___changes" ] then printf "$PS_PREC_GIT" else printf "$PS_PREC" fi + colors_res } trap "SECONDS=0;___timer=''" SIGUSR2 -- cgit v1.2.3