2022-03-23 01:03:04 +00:00
|
|
|
#!/bin/sh
|
|
|
|
which lsd>/dev/null
|
2022-12-19 12:59:24 +00:00
|
|
|
([ $? -eq 0 ] && \
|
|
|
|
alias ls="lsd -h --color=auto --group-dirs first") || \
|
2022-03-23 01:03:04 +00:00
|
|
|
alias ls="ls -h --color=auto --group-directories-first"
|
2022-12-19 12:59:24 +00:00
|
|
|
# if [ $? -eq 0 ]; then
|
|
|
|
# alias ls="lsd -h --color=auto --group-dirs first"
|
|
|
|
# else
|
2022-03-23 01:03:04 +00:00
|
|
|
# alias ls="ls -h --color=auto --group-directories-first"
|
2022-12-19 12:59:24 +00:00
|
|
|
# fi
|
|
|
|
which doas>/dev/null && [ $? -eq 0 ] && alias doas="sudo"
|
2022-03-23 01:03:04 +00:00
|
|
|
alias\
|
|
|
|
ll="ls -l"\
|
|
|
|
la="ls -a"\
|
|
|
|
diff="diff --color=auto"\
|
|
|
|
grep="grep --color=auto -n"
|