summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2023-04-04 08:20:51 +0200
committerAlan Pearce2023-04-04 08:20:51 +0200
commite727b529dc820a65045fec7ac32054ce3f89dc32 (patch)
tree1fdb595c577b48af0197951f71a38c69f080dd1b /user
parent66ffb68afef42bb46a2dd75e4ba466a1ac43497e (diff)
downloadnixfiles-e727b529dc820a65045fec7ac32054ce3f89dc32.tar.lz
nixfiles-e727b529dc820a65045fec7ac32054ce3f89dc32.tar.zst
nixfiles-e727b529dc820a65045fec7ac32054ce3f89dc32.zip
zsh: add `finder` function to open Finder
Diffstat (limited to 'user')
-rw-r--r--user/zsh/zshrc.darwin4
1 files changed, 4 insertions, 0 deletions
diff --git a/user/zsh/zshrc.darwin b/user/zsh/zshrc.darwin
index c8f17a43..320b8267 100644
--- a/user/zsh/zshrc.darwin
+++ b/user/zsh/zshrc.darwin
@@ -27,3 +27,7 @@ mosh() {
 	set_title
 	return $retval
 }
+finder() {
+	open -a Finder "${1:-.}"
+}
+compdef '_path_files -/' finder