From f0b597aa6172e7f803d928a2ffb91202eaca5b3d Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Tue, 18 Nov 2025 19:27:29 +0100 Subject: [PATCH] add show in file manager zsh function --- modules/zsh.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/zsh.nix b/modules/zsh.nix index 288d66f..e9d8b1a 100644 --- a/modules/zsh.nix +++ b/modules/zsh.nix @@ -112,8 +112,16 @@ in echo "$target" fi } - - + + # Function to show current directory in file manager + function fm() { + local current_dir="$(pwd)" + ${if pkgs.stdenv.isDarwin then + "open -R \"$current_dir\"" + else + "thunar \"$current_dir\" &"} + } + # Interactive project launcher with fzf function proj() { local project_json="$HOME/.config/nix/config/projects.json"