mirror of
https://github.com/hydroxycarbamide/dotfiles.git
synced 2025-06-23 23:39:24 -04:00
fish: update configs and functions
This commit is contained in:
parent
3b5aebcd93
commit
8c262bb069
5 changed files with 47 additions and 21 deletions
8
dot_config/private_fish/functions/y.fish
Normal file
8
dot_config/private_fish/functions/y.fish
Normal file
|
@ -0,0 +1,8 @@
|
|||
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