From cf9d94351fd7e61c9971f101ff7e17e88692a720 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Mon, 25 Mar 2024 19:27:47 +0100 Subject: [PATCH] Add more aliases. --- home-manager/modules/shell.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/home-manager/modules/shell.nix b/home-manager/modules/shell.nix index fb494e2..1691673 100644 --- a/home-manager/modules/shell.nix +++ b/home-manager/modules/shell.nix @@ -6,7 +6,13 @@ enableCompletion = true; history.path = "${config.xdg.dataHome}/zsh/history"; dotDir = ".config/zsh"; - shellAliases = { lg = "lazygit"; }; + shellAliases = { + lg = "lazygit"; + j = + "cd $(zoxide query --list | fzf --prompt 'Directory: ' -i --reverse --layout=reverse --border=rounded --info=inline --preview 'eza -A --tree -L 1 {}')"; + gj = '' + cd $(find ${config.home.homeDirectory} -name .git -type d -exec dirname {} \; -prune | fzf --prompt "Directory: " -i --reverse --layout=reverse --border=rounded --info=inline --preview "eza -A --tree -L 1 {}")''; + }; envExtra = '' # NNN settings export NNN_FIFO="/tmp/nnn.fifo"