From d9cd089009be717ad6941e02c03125fb3285f399 Mon Sep 17 00:00:00 2001 From: Mat Jones Date: Thu, 1 Aug 2024 11:12:56 -0400 Subject: [PATCH] feat(fish): Add vimish shell aliases --- home-manager/modules/fish.nix | 7 +++++++ home-manager/modules/nvim.nix | 9 --------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/home-manager/modules/fish.nix b/home-manager/modules/fish.nix index 63ffdab6..930b9d9d 100644 --- a/home-manager/modules/fish.nix +++ b/home-manager/modules/fish.nix @@ -29,6 +29,13 @@ }]; shellAliases = { + ":q" = "exit"; + ":Q" = "exit"; + ":e" = "nvim"; + ":vsp" = "wezterm cli split-pane --right"; + ":sp" = "wezterm cli split-pane --bottom"; + + f = "wezterm cli get-text | fzf | copy"; copy = if isDarwin then "pbcopy" else "xclip -selection clipboard"; paste = if isDarwin then "pbpaste" else "xlip -o -selection clipboard"; cat = "bat"; diff --git a/home-manager/modules/nvim.nix b/home-manager/modules/nvim.nix index 66f74f47..342361cc 100644 --- a/home-manager/modules/nvim.nix +++ b/home-manager/modules/nvim.nix @@ -7,15 +7,6 @@ "${pkgs.sqlite.out}/lib/libsqlite3.dylib"; }; - programs.fish.shellAliases = { - # lol, sometimes I'm stupid - ":q" = "exit"; - ":Q" = "exit"; - # I swear I'm an idiot sometimes - ":e" = "nvim"; - update-nvim-plugins = "nvim --headless '+Lazy! sync' +qa"; - }; - xdg.configFile = { ripgrep_ignore.text = '' .git/