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"