diff --git a/dotfiles/shell/aliases b/dotfiles/shell/aliases index 674e98f..a134299 100644 --- a/dotfiles/shell/aliases +++ b/dotfiles/shell/aliases @@ -168,7 +168,12 @@ bye() { sudo shutdown now } -alias reboot='sudo protonvpn d; sudo reboot' +reboot() { + if command -v protonvpn >/dev/null 2>&1; then + sudo protonvpn d + fi + sudo reboot +} # Open a map with location after using whois whois-firefox() {