From fe9f97e2738ba591b8fc2d70f59067d5bd152fe3 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 1 Nov 2013 18:17:31 +0000 Subject: zsh: Refactor magit and dired into functions --- zsh/zshrc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'zsh') diff --git a/zsh/zshrc b/zsh/zshrc index a08cee03..28356be5 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -312,8 +312,6 @@ alias wprop='xprop |awk '\'' /^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 ...='../..' @@ -326,6 +324,14 @@ fi # Functions +magit () { + emacsclient -e "(magit-status \"$PWD\")" +} + +dired () { + emacsclient -e "(dired \"$PWD\")" +} + pid () { local i for i in /proc/<->/stat -- cgit 1.4.1