Skip to content

Commit

Permalink
add sudo to alias
Browse files Browse the repository at this point in the history
  • Loading branch information
JensDll committed Jun 30, 2024
1 parent fc4c498 commit fbfaeea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unix/.bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ fi

# https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#index-command
if ! command -v poweroff > /dev/null; then
alias poweroff='shutdown -h now'
alias poweroff='sudo shutdown -h now'
fi

if ! command -v reboot > /dev/null; then
alias reboot='shutdown -r now'
alias reboot='sudo shutdown -r now'
fi

# https://manpages.debian.org/tree
Expand Down

0 comments on commit fbfaeea

Please sign in to comment.