From 1a8e7c9478f9d5f7190cf59458193f3303650b11 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 28 Sep 2016 17:02:43 +0200 Subject: zsh: Add function to open project from PWD or arg --- tag-zsh/config/zsh/zshrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tag-zsh/config/zsh/zshrc') diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc index a816879d..a133a7da 100644 --- a/tag-zsh/config/zsh/zshrc +++ b/tag-zsh/config/zsh/zshrc @@ -24,6 +24,13 @@ fi export EDITOR=emacsclient alias ec=emacsclient +alias open-project=projectile +_emacs_function () { + emacsclient -e "($1 \"$2\")" > /dev/null +} +projectile () { + _emacs_function projectile-switch-project-by-name ${1:-$PWD} +} ls='\ls' gnu_ls_options="-v --group-directories-first --color=auto" -- cgit 1.4.1