summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/zsh/zshrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/user/zsh/zshrc b/user/zsh/zshrc
index 889a9490..e7bc871b 100644
--- a/user/zsh/zshrc
+++ b/user/zsh/zshrc
@@ -125,3 +125,8 @@ bindkey '\ej' anyframe-widget-cd-ghq-repository
 bindkey '^x^k' anyframe-widget-kill
 
 unsetopt flow_control       # Let me use ^S and ^Q
+
+add_project () {
+  project=${1:-$PWD}
+  emacsclient -e "(projectile-add-known-project \"${project}\")"
+}