From e7600546d6953eeae8857428a4b14a5236551eaa Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 17 Apr 2023 08:36:08 -0400 Subject: [PATCH] Make 'ee' a script; add back 'l' alias --- home/neovim.nix | 10 ++++++++++ home/shellcommon.nix | 7 ++----- 2 files changed, 12 insertions(+), 5 deletions(-) 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 {