This commit is contained in:
tavo-wasd 2024-06-20 01:24:45 -06:00
parent 5c2e771705
commit 8cf602ab13

View file

@ -54,7 +54,7 @@ short_time() {
}
short_path() {
curr_path="$(pwd | sed 's/\/data\/data\/com\.termux\/files\/home/~/g;s/\/home\/[A-Za-z]*/~/g')"
curr_path="$(pwd | sed 's/\/data\/data\/com.termux\/files\/home/~/g;s/\/home\/[A-Za-z]*/~/g')"
if [ "${#curr_path}" -gt 25 ] ; then
curr_path="${curr_path##*/}"
if git rev-parse --is-inside-work-tree >/dev/null 2>&1 ; then