NOflake/users/tao/nushell/stuff.nu
2024-04-28 10:56:46 -07:00

41 lines
919 B
Text

source ~/.cache/starship/init.nu
source ~/.zoxide.nu
def bump [] {
cd /home/tao/projects/NOflake/
jj new -m "bump"
nix flake update
# rc2nix | save -f /home/tao/projects/NOflake/users/tao/plasma.nix;
sudo nixos-rebuild boot --flake /home/tao/projects/NOflake/ --impure --verbose
}
def tse [exit_node] {
tailscale set --exit-node=$exit_node
}
alias b = btm;
alias cringe = sudo bootctl set-oneshot auto-windows
alias fetch = neofetch
alias ff = firefox
alias gc = sudo nix-collect-garbage -d --verbose
alias js = jj status
alias jd = jj diff
alias pu = pueue
alias rb = sudo nice -n19 nixos-rebuild boot --flake . --impure --verbose
alias rs = sudo nice -n19 nixos-rebuild switch --flake . --impure --verbose
alias t = task
alias ts = tailscale
alias tss = tailscale status
alias tsx = tailscale exit-node list
alias zl = zellij
def l [] {
ls | sort-by type
}
def c [$path] {
cd $path;
l;
}
task