termux fix
This commit is contained in:
parent
8cf602ab13
commit
dc063da310
2 changed files with 7 additions and 3 deletions
|
@ -105,8 +105,10 @@ alias \
|
|||
img="cd $HOME/Pictures/ && ls" \
|
||||
vid="cd $HOME/Videos/ && ls" \
|
||||
|
||||
command -v exa >/dev/null 2>&1 && alias ls="exa -al --icons --group-directories-first --no-permissions --no-user --time-style=iso --git" \
|
||||
command -v eza >/dev/null 2>&1 && alias ls="eza -al --icons --group-directories-first --no-permissions --no-user --time-style=iso --git" \
|
||||
|
||||
alias \
|
||||
ls="exa -al --icons --group-directories-first --no-permissions --no-user --time-style=iso --git" \
|
||||
fzf="fzf --cycle --reverse" \
|
||||
diff="diff --color=auto" \
|
||||
grep="grep --color=auto" \
|
||||
|
|
|
@ -39,7 +39,7 @@ short_time() {
|
|||
}
|
||||
|
||||
short_path() {
|
||||
curr_path="$(pwd | sed '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
|
||||
|
@ -90,8 +90,10 @@ alias \
|
|||
img="cd $HOME/Pictures/ && ls" \
|
||||
vid="cd $HOME/Videos/ && ls" \
|
||||
|
||||
command -v exa >/dev/null 2>&1 && alias ls="exa -al --icons --group-directories-first --no-permissions --no-user --time-style=iso --git" \
|
||||
command -v eza >/dev/null 2>&1 && alias ls="eza -al --icons --group-directories-first --no-permissions --no-user --time-style=iso --git" \
|
||||
|
||||
alias \
|
||||
ls="exa -al --icons --group-directories-first --no-permissions --no-user --time-style=iso --git" \
|
||||
fzf="fzf --cycle --reverse" \
|
||||
diff="diff --color=auto" \
|
||||
grep="grep --color=auto" \
|
||||
|
|
Loading…
Reference in a new issue