exa & bat added

This commit is contained in:
2023-08-21 23:21:43 +02:00
parent 64f5aba9e0
commit c128622740
+13
View File
@@ -6,6 +6,13 @@ else
fi fi
alias ll='ls -al' alias ll='ls -al'
if (( $+commands[exa] )); then
alias ls='exa --color=always --icons --group-directories-first' # my preferred listing
alias la='exa -a --color=always --icons --group-directories-first' # all files and dirs
alias ll='exa -a -l --color=always --icons --group-directories-first' # long format
alias lt='exa -aT --color=always --icons --group-directories-first' # tree listing
fi
if (( $+commands[pacman-mirrors] )); then if (( $+commands[pacman-mirrors] )); then
alias updmirror='sudo pacman-mirrors -f0 && sudo pacman -Sy' alias updmirror='sudo pacman-mirrors -f0 && sudo pacman -Sy'
fi fi
@@ -26,6 +33,10 @@ if (( $+commands[apt] )); then
alias update='sudo apt update; sudo apt upgrade -y' alias update='sudo apt update; sudo apt upgrade -y'
fi fi
if (( $+commands[bat] )); then
alias cat='bat'
fi
if (( $+commands[docker] )); then if (( $+commands[docker] )); then
alias dc='docker compose' alias dc='docker compose'
alias dcu='docker compose up -d' alias dcu='docker compose up -d'
@@ -38,6 +49,8 @@ if (( $+commands[docker] )); then
alias dcp='docker compose pull' alias dcp='docker compose pull'
fi fi
alias rm='rm -rf'
if [[ '$TERM' == screen* ]]; then if [[ '$TERM' == screen* ]]; then
if (( $+commands[neofetch] )); then if (( $+commands[neofetch] )); then
neofetch neofetch