termux
This commit is contained in:
parent
b4b68f4cf6
commit
4a39150eb4
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ short_time() {
|
||||||
}
|
}
|
||||||
|
|
||||||
short_path() {
|
short_path() {
|
||||||
curr_path="$(pwd | sed 's/\/home\/[A-Za-z]*/~/g')"
|
curr_path="$(pwd | sed 's/\/home\/[A-Za-z]*/~/g;s/\/data\/data\/com\.termux\/files\/home/~/g')"
|
||||||
if [ "${#curr_path}" -gt 25 ] ; then
|
if [ "${#curr_path}" -gt 25 ] ; then
|
||||||
curr_path="${curr_path##*/}"
|
curr_path="${curr_path##*/}"
|
||||||
if git rev-parse --is-inside-work-tree >/dev/null 2>&1 ; then
|
if git rev-parse --is-inside-work-tree >/dev/null 2>&1 ; then
|
||||||
|
|
Loading…
Reference in a new issue