update aliases
This commit is contained in:
parent
4a47f28636
commit
10ae970e2a
|
@ -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 }' \
|
||||
|
|
Loading…
Reference in New Issue