add show in file manager zsh function

This commit is contained in:
Yan Lin 2025-11-18 19:27:29 +01:00
parent 9cc5b234ac
commit f0b597aa61

View file

@ -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"