new nushell stuff

This commit is contained in:
Tao Tien 2024-11-05 08:16:23 -08:00
parent 7c12c1d4f2
commit 1fa23239ee
3 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,6 @@
{pkgs, ...}: { {pkgs, ...}: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
digital
asm-lsp asm-lsp
gh gh
# bash-language-server # bash-language-server

View file

@ -26,7 +26,7 @@
ouch ouch
pueue pueue
ripgrep ripgrep
rustdesk # rustdesk
# screen # screen
skim skim
tree tree

View file

@ -27,6 +27,7 @@ alias jg = jj git clone --colocate
alias jm = jj bookmark set main alias jm = jj bookmark set main
alias jp = jj git push alias jp = jj git push
alias js = jj status alias js = jj status
alias jw = jj workspace update-stale
def h [] { def h [] {
sk | complete | sk | complete |
@ -66,6 +67,9 @@ def nr [package] {
nix search nixpkgs $package nix search nixpkgs $package
} }
def rebuild --wrapped [subcommand, ...rest] { def rebuild --wrapped [subcommand, ...rest] {
if (open /etc/hostname == NOlaptop) {
sudo nix store info --store ssh://nocomputer
}
sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose ...$rest sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose ...$rest
} }
# def post-rebuild [] { # def post-rebuild [] {