mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Add scu-* aliases for systemctl --user commands.
Plugin: systemd.
This commit is contained in:
parent
9263e9ca59
commit
89df08054f
1 changed files with 3 additions and 0 deletions
|
|
@ -8,8 +8,11 @@ sudo_commands=(
|
|||
link load cancel set-environment unset-environment
|
||||
edit)
|
||||
|
||||
all_commands=($user_commands $sudo_commands)
|
||||
|
||||
for c in $user_commands; do; alias sc-$c="systemctl $c"; done
|
||||
for c in $sudo_commands; do; alias sc-$c="sudo systemctl $c"; done
|
||||
for c in $all_commands; do; alias scu-$c="systemctl --user $c"; done
|
||||
|
||||
alias sc-enable-now="sc-enable --now"
|
||||
alias sc-disable-now="sc-disable --now"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue