1
0
Fork 0

update aliases

This commit is contained in:
Luca Bilke 2023-11-17 14:46:23 +01:00
parent 4a47f28636
commit 10ae970e2a
1 changed files with 22 additions and 6 deletions

View File

@ -1,4 +1,5 @@
#!/bin/sh
# shellcheck disable=SC2142
for command in apt su ; do
alias $command="sudo $command"
@ -30,14 +31,29 @@ alias \
alias \
ka="killall" \
e="$EDITOR" \
ar="apt remove" \
are="apt reinstall" \
ai="apt install" \
are="apt remove" \
arein="apt reinstall" \
ain="apt install" \
aur="apt autoremove" \
au="apt upgrade" \
aup="apt upgrade" \
ase="apt search" \
ash="apt show"
# Misc.
alias \
ll="ls -alhN --color=auto --group-directories-first" \
ref="shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" \
ll="ls -lhpAN --color=auto --group-directories-first" \
vim="nvim" \
# Docker
alias \
dps="docker ps --format 'table {{.Image}}\t{{.Names}}\t{{.Status}}'" \
dpt="docker ps --format 'table {{.Names}}\t{{.Ports}}'" \
dmn="docker ps --format 'table {{.Names}}\t{{.Mounts}}'" \
dex="docker exec -it" \
dlg="docker logs" \
dsr="docker start" \
drm="docker rm" \
dsp="docker stop" \
dprune="yes | { docker container prune; docker volume prune; docker network prune; docker image prune; }" \
dbash=' () { docker exec -it $1 /bin/bash }' \
dsh=' () { docker exec -it $1 /bin/sh }' \