shell aliases: add sclen, scldn

also slight organization
This commit is contained in:
PowerUser64 2022-11-05 17:18:20 -07:00
parent 90332c02ea
commit beceb0b9c8

View file

@ -26,11 +26,8 @@ if command -v trash > /dev/null; then
alias rm=trash
fi
alias \
mkd="mkdir -p" \
g=git \
scl='sudo systemctl' \
scu='systemctl --user' \
# git
alias g=git
# <<<
## Program improvements (ex: ls = ls -h) >>>
@ -69,6 +66,9 @@ if command -v lsd > /dev/null && ! ${IS_TTY:-false}; then
alias lsd='lsd --group-dirs=first'
fi
# Shorter + more useful mkdir
alias mkd="mkdir -p"
# <<<
## Mini short-hand scripts (ex: glone = git clone) >>>
# dotfile management
@ -87,6 +87,13 @@ alias cd-='cd -'
# List available X displays. Useful for finding what display to export when connected over ssh.
alias lsx='ls /tmp/.X11-unix | tr "X" ":"'
# systemctl
alias \
scl='sudo systemctl' \
sclen='sudo systemctl enable --now' \
scldn='sudo systemctl disable --now' \
scu='systemctl --user' \
# Make ydotool actually usable for short things
alias ydotool='(sudo ydotoold &) && sleep 0.08 && sudo ydotool'