all repos — nixfiles @ 1a8e7c9478f9d5f7190cf59458193f3303650b11

System and user configuration, managed by nix and home-manager

zsh: Add function to open project from PWD or arg

Alan Pearce
commit

1a8e7c9478f9d5f7190cf59458193f3303650b11

parent

ebdd9dd556f590a0f2d6e645555292d05d5533ee

1 file 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"