config/shell: show systemctl transactions

This commit is contained in:
xeruf 2021-12-23 20:04:26 +01:00
parent e9283ce7d5
commit 026e44ebee
2 changed files with 6 additions and 5 deletions

View File

@ -4,6 +4,7 @@ which pacman >/dev/null || return 0
alias pac='noglob sudo pacman' alias pac='noglob sudo pacman'
alias pacs='pac -Syu --needed' alias pacs='pac -Syu --needed'
alias pacr='pac -R --recursive' alias pacr='pac -R --recursive'
alias yau='sudo systemctl start --show-transaction reflector && noglob yay'
alias yays='noglob yay -Sy --needed --noprovides --noremovemake' alias yays='noglob yay -Sy --needed --noprovides --noremovemake'
alias yayr='noglob yay -R --cascade --recursive' alias yayr='noglob yay -R --cascade --recursive'

View File

@ -148,13 +148,13 @@ scr() {
sudo systemctl restart "$1" sudo systemctl restart "$1"
} }
# Restart matching systemctl service with chance for input inbetween # Restart matching systemctl service with time for adjustments inbetween
scb() { scb() {
systemctl --user stop -T "$1" systemctl --user stop --show-transaction "$1"
sudo systemctl stop -T "$1" sudo systemctl stop --show-transaction "$1"
read read
systemctl --user start -T "$1" systemctl --user start --show-transaction "$1"
sudo systemctl start -T "$1" sudo systemctl start --show-transaction "$1"
} }
alias jcl='sudo SYSTEMD_LESS=FRKi journalctl --boot --no-hostname -e' alias jcl='sudo SYSTEMD_LESS=FRKi journalctl --boot --no-hostname -e'