diff --git a/home/neovim.nix b/home/neovim.nix index 17111a4..2b11ef7 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -111,4 +111,14 @@ ''; }; + home.packages = [ + (pkgs.writeShellApplication { + name = "ee"; + text = '' + set -x + exec nvim "$(fzf)" + ''; + }) + ]; + } diff --git a/home/shellcommon.nix b/home/shellcommon.nix index 3cc3c7d..bfe0b52 100644 --- a/home/shellcommon.nix +++ b/home/shellcommon.nix @@ -1,13 +1,10 @@ -{ lib, ... }: +{ pkgs, lib, ... }: let shellAliases = { e = "nvim"; - ee = '' - nvim (fzf) - ''; g = "git"; lg = "lazygit"; - # TODO: Add 'l' alias, after https://www.nushell.sh/blog/2023-04-04-nushell_0_78.html#aliases-now-can-shadow + l = lib.getExe pkgs.exa; }; in {