mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-07-24 05:57:47 +02:00
Merge 1adde8151e into accdcb2f1c
This commit is contained in:
commit
7b43a6c9d3
2 changed files with 6 additions and 1 deletions
|
|
@ -44,6 +44,7 @@ alias app='apt-cache policy'
|
||||||
if [[ $use_sudo -eq 1 ]]; then
|
if [[ $use_sudo -eq 1 ]]; then
|
||||||
# commands using sudo #######
|
# commands using sudo #######
|
||||||
alias aac='sudo $apt_pref autoclean'
|
alias aac='sudo $apt_pref autoclean'
|
||||||
|
alias aar='sudo apt-get --purge autoremove' #this command is only with apt-get
|
||||||
alias abd='sudo $apt_pref build-dep'
|
alias abd='sudo $apt_pref build-dep'
|
||||||
alias ac='sudo $apt_pref clean'
|
alias ac='sudo $apt_pref clean'
|
||||||
alias ad='sudo $apt_pref update'
|
alias ad='sudo $apt_pref update'
|
||||||
|
|
@ -75,6 +76,7 @@ if [[ $use_sudo -eq 1 ]]; then
|
||||||
# commands using su #########
|
# commands using su #########
|
||||||
else
|
else
|
||||||
alias aac='su -ls \'$apt_pref autoclean\' root'
|
alias aac='su -ls \'$apt_pref autoclean\' root'
|
||||||
|
alias aar='su -lc "apt-get --purge autoremove" root' #this command is only with apt-get
|
||||||
abd() {
|
abd() {
|
||||||
cmd="su -lc '$apt_pref build-dep $@' root"
|
cmd="su -lc '$apt_pref build-dep $@' root"
|
||||||
print "$cmd"
|
print "$cmd"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
user_commands=(
|
user_commands=(
|
||||||
list-units is-active status show help list-unit-files
|
list-units is-active status show help list-unit-files
|
||||||
is-enabled list-jobs show-environment cat list-timers)
|
is-enabled list-jobs show-environment cat list-timers
|
||||||
|
is-system-running default rescue halt poweroff reboot
|
||||||
|
emergency kexec exit suspend hibernate hybrid-sleep)
|
||||||
|
|
||||||
sudo_commands=(
|
sudo_commands=(
|
||||||
start stop reload restart try-restart isolate kill
|
start stop reload restart try-restart isolate kill
|
||||||
|
|
@ -14,3 +16,4 @@ for c in $sudo_commands; do; alias sc-$c="sudo systemctl $c"; done
|
||||||
alias sc-enable-now="sc-enable --now"
|
alias sc-enable-now="sc-enable --now"
|
||||||
alias sc-disable-now="sc-disable --now"
|
alias sc-disable-now="sc-disable --now"
|
||||||
alias sc-mask-now="sc-mask --now"
|
alias sc-mask-now="sc-mask --now"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue