mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
chore
This commit is contained in:
parent
31fde92975
commit
f4e142e83e
6 changed files with 20 additions and 7 deletions
|
|
@ -167,3 +167,11 @@ function __last_history_item; echo $history[1]; end
|
|||
|
||||
abbr -a !! --position anywhere --function __last_history_item
|
||||
|
||||
function y
|
||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||
yazi $argv --cwd-file="$tmp"
|
||||
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||
builtin cd -- "$cwd"
|
||||
end
|
||||
rm -f -- "$tmp"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue