From 7172c6e38f35d6e076dff3af84094c141f2203da Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 25 Jun 2014 14:25:19 +0100 Subject: zsh: dired: take an optional dir argument --- tag-zsh/config/zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tag-zsh/config/zsh') diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc index 451f212..c78f92b 100755 --- a/tag-zsh/config/zsh/zshrc +++ b/tag-zsh/config/zsh/zshrc @@ -288,7 +288,7 @@ magit () { } dired () { - emacsclient -e "(dired \"$PWD\")" > /dev/null + emacsclient -e "(dired \"${1:-$PWD}\")" > /dev/null } pid () { -- cgit 1.4.1