mirror of
https://github.com/szymon-jozef/superior_dotfiles.git
synced 2026-09-07 12:10:38 +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
|
duf
|
||||||
gdu
|
gdu
|
||||||
tealdeer
|
tealdeer
|
||||||
gimp
|
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
@@ -120,6 +119,7 @@
|
|||||||
programs.yazi = {
|
programs.yazi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
|
shellWrapperName = "y";
|
||||||
settings = {
|
settings = {
|
||||||
mgr = {
|
mgr = {
|
||||||
ratio = [ 1 4 3 ];
|
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