adding yazi, refactor emacs package config, more
This commit is contained in:
parent
fe95c5af51
commit
29f9ba670f
6 changed files with 208 additions and 115 deletions
10
dotfiles/dot_config/fish/functions/y.fish
Normal file
10
dotfiles/dot_config/fish/functions/y.fish
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
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