diff --git a/modules/common/shell/0_nushell.nu b/modules/common/shell/0_nushell.nu index 21c5d80..fa7b2e9 100644 --- a/modules/common/shell/0_nushell.nu +++ b/modules/common/shell/0_nushell.nu @@ -341,6 +341,16 @@ def --env mcg [path: path]: nothing -> nothing { jj git init --colocate } +# Open a file in nvim using fzf. +def vff []: nothing -> nothing { + nvim (fzf) +} + +# Open a file in nvim using fd. +def vfd [filename: string]: nothing -> nothing { + nvim (fd -t f $filename) +} + def --env "nu-complete jc" [commandline: string] { let stor = stor open diff --git a/modules/common/shell/aliases.nix b/modules/common/shell/aliases.nix index 8f57ece..c4ba270 100644 --- a/modules/common/shell/aliases.nix +++ b/modules/common/shell/aliases.nix @@ -21,6 +21,7 @@ vi = "vim"; vim = "nvim"; + # Utilities ff = "fastfetch --load-config examples/10.jsonc"; g = "glimpse --interactive -o both -f llm.md"; @@ -56,5 +57,8 @@ rb = "nh darwin switch . -- --extra-experimental-features \"nix-command pipe-operators\""; rbc = "nh darwin switch . -- --extra-experimental-features \"nix-command pipe-operators\" --option extra-substituters \"\""; rebuild = "${../../../rebuild.nu}"; + + # LLM agent helper - run nushell with user config + nuc = "nu --config ${./0_nushell.nu} --execute"; }; } diff --git a/modules/common/shell/greeting.nix b/modules/common/shell/greeting.nix index ca4aa26..21b6c75 100644 --- a/modules/common/shell/greeting.nix +++ b/modules/common/shell/greeting.nix @@ -9,7 +9,7 @@ let "Endure, Master Wayne. Take it. They'll hate you for it, but that's the point of Batman. He can be the outcast. He can make the choice that no one else can make. The right choice. - Alfred Pennyworth" "— I never said thank you.\n— And you will never have to." "A hero can be anyone, even a man doing something as simple and reassuring as putting a coat on a young boy's shoulders to let him know that the world hadn't ended. - Batman" - "— Come with me. Save yourself. You don't owe these ppl anymore, you've given them everything.\n— Not everything. Not yet." + "— Come with me. Save yourself. You don't owe these people anymore, you've given them everything.\n— Not everything. Not yet." "The night is always darkest before the dawn, but I promise you, the dawn is coming. - Harvey Dent" "It's not who you are underneath, but what you do that defines you. - Batman" "The idea was to be a symbol. Batman... could be anybody. That was the point. - Bruce Wayne"