1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01:00

shell: add aliases

This commit is contained in:
TheGeneralist 2026-01-21 21:27:59 +01:00
parent f9791ff888
commit eb03e6ef9d
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
3 changed files with 15 additions and 1 deletions

View file

@ -341,6 +341,16 @@ def --env mcg [path: path]: nothing -> nothing {
jj git init --colocate 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] { def --env "nu-complete jc" [commandline: string] {
let stor = stor open let stor = stor open

View file

@ -21,6 +21,7 @@
vi = "vim"; vi = "vim";
vim = "nvim"; vim = "nvim";
# Utilities # Utilities
ff = "fastfetch --load-config examples/10.jsonc"; ff = "fastfetch --load-config examples/10.jsonc";
g = "glimpse --interactive -o both -f llm.md"; g = "glimpse --interactive -o both -f llm.md";
@ -56,5 +57,8 @@
rb = "nh darwin switch . -- --extra-experimental-features \"nix-command pipe-operators\""; 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 \"\""; rbc = "nh darwin switch . -- --extra-experimental-features \"nix-command pipe-operators\" --option extra-substituters \"\"";
rebuild = "${../../../rebuild.nu}"; rebuild = "${../../../rebuild.nu}";
# LLM agent helper - run nushell with user config
nuc = "nu --config ${./0_nushell.nu} --execute";
}; };
} }

View file

@ -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" "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." " 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" "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" "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" "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" "The idea was to be a symbol. Batman... could be anybody. That was the point. - Bruce Wayne"