minor changes

This commit is contained in:
pika 2024-05-21 15:47:41 +02:00
parent 9170f7d003
commit 34e598d948

View file

@ -97,32 +97,22 @@ if command -v lsd >/dev/null 2>&1
alias ls='lsd -l' alias ls='lsd -l'
alias ll='lsd -lA' alias ll='lsd -lA'
alias tree='lsd --tree' alias tree='lsd --tree'
set -a toolbox " ls is using $(which lsd)
"
else else
# ─< exa >────────────────────────────────────────────────────────────────────────────────── # ─< exa >──────────────────────────────────────────────────────────────────────────────────
if command -v exa >/dev/null 2>&1 if command -v exa >/dev/null 2>&1
alias ls='exa --icons -l' alias ls='exa --icons -l'
alias ll='exa --icons -laa' alias ll='exa --icons -laa'
alias tree='exa --icons -l -tree' alias tree='exa --icons -l -tree'
set -a toolbox " ls is using $(which exa)
"
else else
# ─< eza >────────────────────────────────────────────────────────────────────────────────── # ─< eza >──────────────────────────────────────────────────────────────────────────────────
if command -v eza >/dev/null 2>&1 if command -v eza >/dev/null 2>&1
alias ls='eza --icons -l' alias ls='eza --icons -l'
alias ll='eza --icons -laa' alias ll='eza --icons -laa'
alias tree='eza --icons -l -tree' alias tree='eza --icons -l -tree'
set -a toolbox " ls is using $(which eza)
"
else else
# ─< if nothing works -- plain old ls >───────────────────────────────────────────────────── # ─< if nothing works -- plain old ls >─────────────────────────────────────────────────────
alias ls='ls --color=always -lph' alias ls='ls --color=always -lph'
alias ll='ls --color=always -lAph' alias ll='ls --color=always -lAph'
set -a toolbox "  using plain old ls, but with colors!!
"
set -a warnings " no ls helper is installed [lsd, eza, exa..]
"
end end
end end
end end
@ -142,19 +132,11 @@ end
# ─< bat alias >──────────────────────────────────────────────────────────────────────────── # ─< bat alias >────────────────────────────────────────────────────────────────────────────
if command -v batcat >/dev/null 2>&1 if command -v batcat >/dev/null 2>&1
alias cat='batcat --color=always -p --paging=never' alias cat='batcat --color=always -p --paging=never'
set -a toolbox " cat is using $(which batcat)
"
else else
# ─< batcat alias >───────────────────────────────────────────────────────────────────────── # ─< batcat alias >─────────────────────────────────────────────────────────────────────────
if command -v bat >/dev/null 2>&1 if command -v bat >/dev/null 2>&1
alias cat='bat --color=always -p' alias cat='bat --color=always -p'
set -a toolbox " cat is using $(which bat)
"
else
set -a warnings " bat
"
end
end end
# ─< t stands for tmux >──────────────────────────────────────────────────────────────────── # ─< t stands for tmux >────────────────────────────────────────────────────────────────────
@ -162,11 +144,6 @@ if command -v tmux >/dev/null 2>&1
alias ts="tmux source $HOME/.tmux.conf" alias ts="tmux source $HOME/.tmux.conf"
alias ta="tmux a" alias ta="tmux a"
alias t="tmux" alias t="tmux"
set -a toolbox " t is using $(which tmux)
"
else
set -a warnings " tmux
"
end end
# ─< d stands for docker >────────────────────────────────────────────────────────────────── # ─< d stands for docker >──────────────────────────────────────────────────────────────────
@ -179,11 +156,6 @@ if command -v docker >/dev/null 2>&1
alias ds='docker ps -a' alias ds='docker ps -a'
alias dc='docker compose' alias dc='docker compose'
alias appudpate='docker pull && docker compose up -d --force-recreate' alias appudpate='docker pull && docker compose up -d --force-recreate'
set -a toolbox " d is using $(which docker) [docker]
"
else
set -a warnings " docker
"
end end