summary refs log tree commit diff stats
path: root/tag-zsh
diff options
context:
space:
mode:
authorAlan Pearce2014-06-25 14:25:19 +0100
committerAlan Pearce2014-06-25 14:25:19 +0100
commit7172c6e38f35d6e076dff3af84094c141f2203da (patch)
tree9b5987e27b0ec1fa15e3692f8f72e696e2965223 /tag-zsh
parente2f45f697ae4f1efc40ecb234679b33a7d99dc68 (diff)
downloadnixfiles-7172c6e38f35d6e076dff3af84094c141f2203da.tar.lz
nixfiles-7172c6e38f35d6e076dff3af84094c141f2203da.tar.zst
nixfiles-7172c6e38f35d6e076dff3af84094c141f2203da.zip
zsh: dired: take an optional dir argument
Diffstat (limited to 'tag-zsh')
-rwxr-xr-xtag-zsh/config/zsh/zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc
index 451f2121..c78f92b9 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 () {