mirror of
https://github.com/Lissy93/dotfiles.git
synced 2024-11-24 16:33:14 +01:00
Adds ls allieases for exa
This commit is contained in:
parent
6375ca1873
commit
0a00b47cee
@ -1,17 +1,23 @@
|
|||||||
# Advanced Aliases.
|
# Advanced Aliases.
|
||||||
# Use with caution
|
# Use with caution
|
||||||
#
|
|
||||||
|
|
||||||
# ls, the common ones I use a lot shortened for rapid fire usage
|
# Checks if a given command is availible
|
||||||
alias l='ls -lFh' #size,show type,human readable
|
command_exists () {
|
||||||
alias la='ls -lAFh' #long list,show almost all,show type,human readable
|
type "$1" &> /dev/null ;
|
||||||
alias lr='ls -tRFh' #sorted by date,recursive,show type,human readable
|
}
|
||||||
alias lt='ls -ltFh' #long list,sorted by date,show type,human readable
|
|
||||||
alias ll='ls -l' #long list
|
# Use exa package (if installed) for better ls
|
||||||
alias ldot='ls -ld .*'
|
if command_exists exa ; then
|
||||||
alias lS='ls -1FSsh'
|
alias ls='exa'
|
||||||
alias lart='ls -1Fcart'
|
alias la='exa -a --icons'
|
||||||
alias lrt='ls -1Fcrt'
|
alias tree='f() { exa -a --tree -L=${1:-2} --icons };f'
|
||||||
|
alias recent='exa -lahr --color-scale --icons --git --git-ignore -s=modified'
|
||||||
|
else
|
||||||
|
alias la='ls -a'
|
||||||
|
fi
|
||||||
|
|
||||||
|
alias l='ls' # List files, will use exa if availible
|
||||||
|
alias ll='ls -laFh' # List all files, with details, type indicators and headings
|
||||||
|
|
||||||
alias zshrc='${=EDITOR} ${ZDOTDIR:-$HOME}/.zshrc' # Quick access to the .zshrc file
|
alias zshrc='${=EDITOR} ${ZDOTDIR:-$HOME}/.zshrc' # Quick access to the .zshrc file
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user