summary refs log tree commit diff stats
path: root/zsh
diff options
context:
space:
mode:
authorAlan Pearce2013-11-01 18:17:31 +0000
committerAlan Pearce2013-11-01 18:17:31 +0000
commitfe9f97e2738ba591b8fc2d70f59067d5bd152fe3 (patch)
treedc2ec48a31cc09849625b7df91a0ed822f700414 /zsh
parent3f38a0e5aa2dc0f22491cde5f2432275f811ed90 (diff)
downloaddotfiles-fe9f97e2738ba591b8fc2d70f59067d5bd152fe3.tar.lz
dotfiles-fe9f97e2738ba591b8fc2d70f59067d5bd152fe3.tar.zst
dotfiles-fe9f97e2738ba591b8fc2d70f59067d5bd152fe3.zip
zsh: Refactor magit and dired into functions
Diffstat (limited to 'zsh')
-rwxr-xr-xzsh/zshrc10
1 files changed, 8 insertions, 2 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index a08cee0..28356be 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