summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/zsh/zshrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/user/zsh/zshrc b/user/zsh/zshrc
index f9f9c984..c63dace2 100644
--- a/user/zsh/zshrc
+++ b/user/zsh/zshrc
@@ -149,3 +149,11 @@ add_project () {
   project=${1:-$PWD}
   emacsclient -e "(projectile-add-known-project \"${project}\")"
 }
+
+esetenv () {
+  emacsclient -e "(setenv \"$1\" \"$2\")"
+}
+
+ecpenv () {
+  esetenv "$1" "${(P)1}"
+}