summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index cbf0fa6..d94f2f1 100644
--- a/.zshrc
+++ b/.zshrc
@@ -146,7 +146,7 @@ function update_dotfiles() {
function suspend_after() {
trap 'kill $!' INT TERM EXIT
systemd-inhibit --what=handle-lid-switch sleep 1d &
- eval "$1"
+ eval "$*"
systemctl suspend
}