all repos — nixfiles @ fe9f97e2738ba591b8fc2d70f59067d5bd152fe3

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

zsh: Refactor magit and dired into functions
Alan Pearce alan@alanpearce.co.uk
Fri, 01 Nov 2013 18:17:31 +0000
commit

fe9f97e2738ba591b8fc2d70f59067d5bd152fe3

parent

3f38a0e5aa2dc0f22491cde5f2432275f811ed90

1 files changed, 8 insertions(+), 2 deletions(-)

jump to
M zsh/zshrczsh/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