16 lines
465 B
Bash
Executable File
16 lines
465 B
Bash
Executable File
#!/bin/sh
|
|
which lsd>/dev/null
|
|
([ $? -eq 0 ] && \
|
|
alias ls="lsd -h --color=auto --group-dirs first") || \
|
|
alias ls="ls -h --color=auto --group-directories-first"
|
|
# if [ $? -eq 0 ]; then
|
|
# alias ls="lsd -h --color=auto --group-dirs first"
|
|
# else
|
|
# alias ls="ls -h --color=auto --group-directories-first"
|
|
# fi
|
|
which doas>/dev/null && [ $? -eq 0 ] && alias doas="sudo"
|
|
alias\
|
|
ll="ls -l"\
|
|
la="ls -a"\
|
|
diff="diff --color=auto"\
|
|
grep="grep --color=auto -n" |