From 6cbeffbaf4bf0cdab2b5a7afdf5d898d4188d0fc Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Sun, 28 Jul 2024 20:19:15 +0530 Subject: [PATCH] feat: add a bunch of qol improvements to cli experience --- hosts/default/shell.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hosts/default/shell.nix b/hosts/default/shell.nix index 37f56df..33bfa93 100644 --- a/hosts/default/shell.nix +++ b/hosts/default/shell.nix @@ -6,8 +6,11 @@ shellAliases = { ls = "${pkgs.eza}/bin/eza -la --icons=always"; cat = "${pkgs.bat}/bin/bat -p"; - nuke = "set here $PWD; cd ..; rm $here -rf"; + nuke = "set here $PWD; prevd; rm $here -rf"; }; + interactiveShellInit = '' + bind \cx cd_zoxide_abbreviation + ''; functions = { fish_prompt = { body = '' @@ -38,6 +41,10 @@ ''; }; fish_greeting.body = ""; + cd_zoxide_abbreviation.body = '' + __zoxide_zi + commandline -f repaint + ''; }; }; }