From 268ff58ac035a95ae44d6ca42ee0ed87bcf1ae1c Mon Sep 17 00:00:00 2001 From: Matt Nish-Lapidus Date: Tue, 1 Apr 2025 14:18:09 -0400 Subject: [PATCH] flake and yazi script --- flake.lock | 36 +++++++++---------- modules/home/shell-conf/fish/functions/y.fish | 7 +--- 2 files changed, 19 insertions(+), 24 deletions(-) diff --git a/flake.lock b/flake.lock index fcad7b8..cf21d4f 100644 --- a/flake.lock +++ b/flake.lock @@ -70,11 +70,11 @@ "nixpkgs-stable": "nixpkgs-stable" }, "locked": { - "lastModified": 1743441505, - "narHash": "sha256-ngHFEJnL2I39ObiATlYa5ScObilVhRXLHPtIbtkpatc=", + "lastModified": 1743527799, + "narHash": "sha256-YbpRE9BakzzB5sxeb/ib5OmMQyR4S5gdhFaFHhAbGcs=", "owner": "nix-community", "repo": "emacs-overlay", - "rev": "6da4875ee60564cb6941f9365494252d24061d1e", + "rev": "546597a40c0f033b319ea9b64ff40e1aaaee2faf", "type": "github" }, "original": { @@ -357,11 +357,11 @@ ] }, "locked": { - "lastModified": 1743438213, - "narHash": "sha256-ZZDN+0v1r4I1xkQWlt8euOJv5S4EvElUCZMrDjTCEsY=", + "lastModified": 1743527271, + "narHash": "sha256-EuanEW1qqXZ2h0zJnq7uz8BoHbsgHgUrqWkCZHwZ9FA=", "owner": "nix-community", "repo": "home-manager", - "rev": "ccd7df836e1f42ea84806760f25b77b586370259", + "rev": "f4d9d1e2ad19d544a0a0cf3f8f371c6139c762e9", "type": "github" }, "original": { @@ -744,11 +744,11 @@ "xwayland-satellite-unstable": "xwayland-satellite-unstable" }, "locked": { - "lastModified": 1743370893, - "narHash": "sha256-u2PqVBoECxAsnY+1yy9DwWetuYyT7uw1FkSpGgh1mBI=", + "lastModified": 1743515240, + "narHash": "sha256-GViZweKJvQlesFGpAom4LZloNtmT5XIJQuWj/qRrnl8=", "owner": "sodiboo", "repo": "niri-flake", - "rev": "22b0f8584e754448911fb50dd028af91ba9f579d", + "rev": "9972796ee8c3e75e8be3c6ce48ca6e30f65f2117", "type": "github" }, "original": { @@ -777,11 +777,11 @@ "niri-unstable": { "flake": false, "locked": { - "lastModified": 1743260207, - "narHash": "sha256-AtizkeSqu7AeMe/JjN8CjENfTKgMGifDW0U2z+S0ygA=", + "lastModified": 1743492917, + "narHash": "sha256-OqLDg0Ody1HX23hgjvjIkfZPNhYKxbkj/ONcDjdD4Ik=", "owner": "YaLTeR", "repo": "niri", - "rev": "b2c34e7fe94a12a65083ac73759672427ea2ccbf", + "rev": "60034a57efd9c8130b05797b37cbc187a8c13145", "type": "github" }, "original": { @@ -981,11 +981,11 @@ }, "nixpkgs-stable_2": { "locked": { - "lastModified": 1743231893, - "narHash": "sha256-tpJsHMUPEhEnzySoQxx7+kA+KUtgWqvlcUBqROYNNt0=", + "lastModified": 1743367904, + "narHash": "sha256-sOos1jZGKmT6xxPvxGQyPTApOunXvScV4lNjBCXd/CI=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "c570c1f5304493cafe133b8d843c7c1c4a10d3a6", + "rev": "7ffe0edc685f14b8c635e3d6591b0bbb97365e6c", "type": "github" }, "original": { @@ -1276,11 +1276,11 @@ ] }, "locked": { - "lastModified": 1743305778, - "narHash": "sha256-Ux/UohNtnM5mn9SFjaHp6IZe2aAnUCzklMluNtV6zFo=", + "lastModified": 1743502316, + "narHash": "sha256-zI2WSkU+ei4zCxT+IVSQjNM9i0ST++T2qSFXTsAND7s=", "owner": "Mic92", "repo": "sops-nix", - "rev": "8e873886bbfc32163fe027b8676c75637b7da114", + "rev": "e7f4d7ed8bce8dfa7d2f2fe6f8b8f523e54646f8", "type": "github" }, "original": { diff --git a/modules/home/shell-conf/fish/functions/y.fish b/modules/home/shell-conf/fish/functions/y.fish index e0c26ff..dc7b675 100644 --- a/modules/home/shell-conf/fish/functions/y.fish +++ b/modules/home/shell-conf/fish/functions/y.fish @@ -1,10 +1,5 @@ #!/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" + wezterm --config-file ~/.config/wezterm/launcher.lua start --always-new-process --cwd (pwd) yazi & end