From b916c2d0b1ebf1239a1a2a54d0270f91487e5ce0 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 25 Oct 2023 14:25:15 +0300 Subject: fix(tazjin/emacs): always list ttys locally Change-Id: Ic05378013aa327616a822336881d9a76c8a22d58 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9829 Autosubmit: tazjin Reviewed-by: tazjin Tested-by: BuildkiteCI --- users/tazjin/emacs/config/look-and-feel.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'users/tazjin') diff --git a/users/tazjin/emacs/config/look-and-feel.el b/users/tazjin/emacs/config/look-and-feel.el index 467316aa8b..d46ba974ca 100644 --- a/users/tazjin/emacs/config/look-and-feel.el +++ b/users/tazjin/emacs/config/look-and-feel.el @@ -45,7 +45,8 @@ (let ((command "who | awk '{print $2}' | grep -v tty7")) (-filter (lambda (s) (not (string-empty-p s))) (s-lines - (s-trim (shell-command-to-string command)))))) + (s-trim (let ((default-directory "/")) + (shell-command-to-string command))))))) (defvar cached-tty-sessions (cons (time-convert nil 'integer) (list-tty-sessions)) "Cached TTY session value to avoid running the command too often.") -- cgit 1.4.1