From b0f4260a30dc4d7357f6d731214333912393fb27 Mon Sep 17 00:00:00 2001 From: xbazzi Date: Sun, 9 Feb 2025 20:54:00 -0700 Subject: [PATCH] Add eza + fzf packages and zsh func --- home/dconf.nix | 6 ++++++ home/zsh.nix | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/home/dconf.nix b/home/dconf.nix index 95ce1a1..d5f41fd 100644 --- a/home/dconf.nix +++ b/home/dconf.nix @@ -12,6 +12,7 @@ "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/" "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom4/" "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom5/" + "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom6/" ]; }; @@ -50,6 +51,11 @@ command = "firefox"; name = "open-firefox"; }; + "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom5" = { + binding = "y+e"; + command = "kitty --start-as=normal -- bash -ic 'repo'"; + name = "open-repos"; + }; "org/gnome/shell" = { disable-user-extensions = false; # enables user extensions diff --git a/home/zsh.nix b/home/zsh.nix index 287e8ac..25d0b70 100755 --- a/home/zsh.nix +++ b/home/zsh.nix @@ -18,6 +18,11 @@ fi rm -f -- "$tmp" } + function proj() { + lsn -ld ~/repos/* --color=never | \ + awk '{print $7}' | \ + fzf --reverse | xargs -I{} code {} -n && exit + } ''; history.size = 10000; history.ignoreAllDups = true;