From 9afdf8d6cf4d945ac764654af75555fc767fb565 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Mon, 10 Nov 2025 09:59:32 +0900 Subject: modified zsh/.zshrc, modified zsh/keymaps.zsh, modified zsh/scripts.zsh --- ar/.config/zsh/scripts.zsh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ar/.config/zsh/scripts.zsh') diff --git a/ar/.config/zsh/scripts.zsh b/ar/.config/zsh/scripts.zsh index e3364e8..92e10c6 100644 --- a/ar/.config/zsh/scripts.zsh +++ b/ar/.config/zsh/scripts.zsh @@ -865,3 +865,16 @@ function delete_venv() { echo "$venv deleted" fi } + + +########################################################################################### +########################################################################################### +### --- YAZI --- ### +# open yazi and cd to the file path +function yazicd() { + local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd + yazi "$@" --cwd-file="$tmp" + IFS= read -r -d '' cwd < "$tmp" + [ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd" + rm -f -- "$tmp" +} -- cgit v1.2.3