Remove lsd

This commit is contained in:
theanonymousexyz 2022-05-23 15:23:56 +02:00
parent 7f4b1dd6c2
commit 3e303ea44f
No known key found for this signature in database
GPG Key ID: 35EE09F5481049BB
1 changed files with 25 additions and 33 deletions

View File

@ -10,6 +10,21 @@ alias -g ....="../../.."
alias -g .....="../../../.."
alias -g ......="../../../../.."
# ls'ing
if (( ${+commands[exa]} )); then
alias exa="exa -Fh --color=always --git --icons"
alias l="exa -al"
alias la="exa -l"
alias ll="exa -aagl"
alias t="exa -a --tree -I '.git'"
alias tl="t -l"
else
alias l="ls -Ahl"
alias la="ls -hl"
alias ll="ls -aFhl"
alias t="tree -aCI '.git|node_modules'"
fi
# Misc.
alias cl="clear"
alias grep="grep --color=always"
@ -23,27 +38,14 @@ alias lock="udisksctl lock -b"
(( ${+commands[tmux]} )) && alias tmux="tmux -2u"
(( ${+commands[dotnet]} )) && alias dnup="dotnet tool list --global | tail -n +3 | awk '{print \$1}' | xargs -l dotnet tool update --global"
if (( ${+commands[exa]} )); then
alias exa="exa -Fh --color=always --git --icons"
alias t="exa -a --tree -I '.git'"
alias tl="t -l"
else
alias t="tree -aCI '.git|node_modules'"
fi
# Platform specific
if [[ $(uname -o) == "Android" ]]; then
# Package management
alias pkgin="pkg install"
alias pkgrm="pkg uninstall --purge"
alias pkgqi="dpkg -s"
alias pkgqs="dpkg -l"
alias pkgsi="pkg info"
alias pkgss"pkg search"
# ls'ing
alias l="exa -al"
alias la="exa -l"
alias ll="exa -aagl"
elif [[ $(uname -o) == "GNU/Linux" ]]; then
# Package management
if [[ $(lsb_release -si) == "Artix" ]]; then
@ -68,26 +70,16 @@ elif [[ $(uname -o) == "GNU/Linux" ]]; then
alias aptss="apt search"
fi
# ls'ing
if [[ $(lsb_release -si) == "Debian" ]] || [[ $(lsb_release -si) == "Ubuntu" ]]; then
alias l="ls -Ahl"
alias la="ls -hl"
alias ll="ls -aFhl"
else
alias btctl="bluetoothctl"
alias l="lsd -Ahl --color=always"
alias la="lsd -hl --color=always"
alias ll="lsd -ahlF --color=always"
alias x="exa -al"
fi
# Misc.
alias open="xdg-open"
if [[ $(lsb_release -si) == "Artix" ]] || [[ $(lsb_release -si) == "Fedora" ]]; then
alias btctl="bluetoothctl"
alias open="xdg-open"
if [[ $(lsb_release -si) == "Artix" ]]; then
alias code="codium --enable-features=UseOzonePlatform --ozone-platform=wayland"
alias poweroff="doas poweroff"
alias reboot="doas reboot"
alias usb="doas usbctl tmp"
if [[ $(lsb_release -si) == "Artix" ]]; then
alias code="codium --enable-features=UseOzonePlatform --ozone-platform=wayland"
alias poweroff="doas poweroff"
alias reboot="doas reboot"
alias usb="doas usbctl tmp"
fi
fi
fi