From 56829fb15876aa56e7cf0dca6c10b6ef9d4d0962 Mon Sep 17 00:00:00 2001 From: Josh Patra <30350506+SoPat712@users.noreply.github.com> Date: Sun, 23 Nov 2025 11:46:34 -0500 Subject: [PATCH] oopsie --- zsh/.zshrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 2e356d3..243d664 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -236,6 +236,14 @@ _fzf_comprun() { esac } +function y() { + 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" +} + # Keybinds bindkey '\t' menu-select "$terminfo[kcbt]" menu-select bindkey -M menuselect '\t' menu-complete "$terminfo[kcbt]" reverse-menu-complete @@ -259,7 +267,6 @@ export PATH="$PATH:$HOME/.local/bin" export PATH="$PATH:/Users/joshp/.lmstudio/bin" # End of LM Studio CLI section -export GEMINI_API_KEY=AIzaSyA515wVt60qNWDqdt0QCKvx9vPoDb6b0fg # The following lines have been added by Docker Desktop to enable Docker CLI completions. fpath=(/Users/joshp/.docker/completions $fpath) autoload -Uz compinit