summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2017-04-20 06:18:36 +0200
committerTharre <tharre3@gmail.com>2017-04-20 06:18:36 +0200
commit1001b3637107e931e46814dfd7d5637bb185cda6 (patch)
treef5db4147753a1ba3e7c46c48501efbb1741350e4 /.zshrc
parent1bbabf2638038ee3bbe953442fc4e45ca8e35b5f (diff)
downloaddotfiles-1001b3637107e931e46814dfd7d5637bb185cda6.tar.gz
dotfiles-1001b3637107e931e46814dfd7d5637bb185cda6.tar.xz
dotfiles-1001b3637107e931e46814dfd7d5637bb185cda6.zip
zsh: fix argument handling in suspend_after()
Diffstat (limited to '.zshrc')
-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
}