From 01c088d30819c02c0f34f43c48290bc10c32ca17 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Fri, 11 Feb 2022 19:38:12 +0100 Subject: [PATCH] Make reboot a function not an alias --- dotfiles/shell/aliases | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() {