From 92f00895aae1f8e7c22ac4396649edbac3b12b30 Mon Sep 17 00:00:00 2001 From: willemml Date: Mon, 7 Aug 2023 15:46:03 -0700 Subject: [PATCH] emacs terminal zsh pwd --- home-manager/profiles/willem/programs/zsh.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home-manager/profiles/willem/programs/zsh.nix b/home-manager/profiles/willem/programs/zsh.nix index 1d8a700..53778f4 100644 --- a/home-manager/profiles/willem/programs/zsh.nix +++ b/home-manager/profiles/willem/programs/zsh.nix @@ -33,6 +33,13 @@ '' export GPG_TTY=$(tty) + if [ -n "$INSIDE_EMACS" ]; then + chpwd() { + print -P "\032/$(pwd)" + } + fi + + function s() { ${shellAliases.web} "https://google.com/search?q=$(echo $@ | sed -e 's/ /%20/g')" }