ansible/roles/shell/files/aliases.sh

16 lines
465 B
Bash
Raw Permalink Normal View History

#!/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") || \
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
# 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"
alias\
ll="ls -l"\
la="ls -a"\
diff="diff --color=auto"\
grep="grep --color=auto -n"