all repos — archive/dotfiles @ 1a8e7c9478f9d5f7190cf59458193f3303650b11

Superseded by nixfiles

zsh: Add function to open project from PWD or arg
Alan Pearce alan@alanpearce.uk
Wed, 28 Sep 2016 17:02:43 +0200
commit

1a8e7c9478f9d5f7190cf59458193f3303650b11

parent

ebdd9dd556f590a0f2d6e645555292d05d5533ee

1 files changed, 7 insertions(+), 0 deletions(-)

jump to
M tag-zsh/config/zsh/zshrctag-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"