Added exa alias, if available.
This commit is contained in:
parent
ac19390bb2
commit
db4ad8a7f8
@ -6,8 +6,16 @@ alias ...='cd ../..'
|
|||||||
alias ....='cd ../../..'
|
alias ....='cd ../../..'
|
||||||
|
|
||||||
# ls aliases
|
# ls aliases
|
||||||
|
# Use exa, if installed
|
||||||
|
if type exa > /dev/null 2>&1; then
|
||||||
|
export EXA_ICON_SPACING=2
|
||||||
|
export TIME_STYLE=long-iso
|
||||||
|
alias ll='exa -l --git --icons'
|
||||||
|
alias ls='exa --icons'
|
||||||
|
else
|
||||||
alias ll='ls -l --group-directories-first'
|
alias ll='ls -l --group-directories-first'
|
||||||
alias ls='ls -hF --color' # add colors for filetype recognition
|
alias ls='ls -hF --color' # add colors for filetype recognition
|
||||||
|
fi
|
||||||
alias lo='ls -o' # without group information
|
alias lo='ls -o' # without group information
|
||||||
alias lr='ls -lrt'
|
alias lr='ls -lrt'
|
||||||
alias la='ls -Al' # show hidden files
|
alias la='ls -Al' # show hidden files
|
||||||
@ -65,3 +73,8 @@ fi
|
|||||||
{{ if eq .bash.prompt.category "Uberspace" -}}
|
{{ if eq .bash.prompt.category "Uberspace" -}}
|
||||||
alias quota='quota -gls'
|
alias quota='quota -gls'
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
# Depending on availability
|
||||||
|
if [ -x /usr/bin/batcat ]; then
|
||||||
|
alias cat='batcat'
|
||||||
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user