zsh: Refactor magit and dired into functions
Alan Pearce alan@alanpearce.co.uk
Fri, 01 Nov 2013 18:17:31 +0000
1 files changed, 8 insertions(+), 2 deletions(-)
jump to
M zsh/zshrc → zsh/zshrc
@@ -312,8 +312,6 @@ /^WM_NAME/{sub(/.* =/, "title:"); print} /^WM_WINDOW_ROLE/{sub(/.* =/, "role:"); print}'\''' alias et="emacsclient -t" -alias magit='ec -e "(magit-status \"$PWD\")"' -alias dired='ec -e "(dired \"$PWD\")"' alias -g ...='../..' @@ -325,6 +323,14 @@ alias git="hub" fi # Functions + +magit () { + emacsclient -e "(magit-status \"$PWD\")" +} + +dired () { + emacsclient -e "(dired \"$PWD\")" +} pid () { local i