mirror of
https://github.com/szymon-jozef/superior_dotfiles.git
synced 2026-06-05 17:00:07 +02:00
Update .config/home-manager/home.nix
Add .config/fish/functions/y.fish Remove .config/fish/functions/y.fish
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
duf
|
||||
gdu
|
||||
tealdeer
|
||||
gimp
|
||||
grim
|
||||
slurp
|
||||
wl-clipboard
|
||||
@@ -120,6 +119,7 @@
|
||||
programs.yazi = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
shellWrapperName = "y";
|
||||
settings = {
|
||||
mgr = {
|
||||
ratio = [ 1 4 3 ];
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
function y
|
||||
set -l tmp (mktemp -t "yazi-cwd.XXXXX")
|
||||
command yazi $argv --cwd-file="$tmp"
|
||||
if read cwd <"$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||
builtin cd -- "$cwd"
|
||||
end
|
||||
rm -f -- "$tmp"
|
||||
end
|
||||
@@ -1,8 +0,0 @@
|
||||
function y
|
||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||
yazi $argv --cwd-file="$tmp"
|
||||
if read -z cwd < "$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||
builtin cd -- "$cwd"
|
||||
end
|
||||
rm -f -- "$tmp"
|
||||
end
|
||||
Reference in New Issue
Block a user