Ansible god!
Big rework! Control stuffs with variables! We still should do some movei'n around of roles before extending features.
This commit is contained in:
15
roles/shell/files/aliases.sh
Executable file
15
roles/shell/files/aliases.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
which lsd>/dev/null
|
||||
if [ "$?" = "0" ]; then
|
||||
alias ls="lsd -h --color=auto --group-dirs first"
|
||||
else
|
||||
alias ls="ls -h --color=auto --group-directories-first"
|
||||
fi
|
||||
# ([ "$?" = "0" ] && \
|
||||
# alias ls="lsd -h --color=auto --group-dirs first") || \
|
||||
# alias ls="ls -h --color=auto --group-directories-first"
|
||||
alias\
|
||||
ll="ls -l"\
|
||||
la="ls -a"\
|
||||
diff="diff --color=auto"\
|
||||
grep="grep --color=auto -n"
|
Reference in New Issue
Block a user