NOflake/users/tao/nushell/stuff.nu

42 lines
919 B
Text
Raw Normal View History

2024-03-15 12:47:44 -07:00
source ~/.cache/starship/init.nu
source ~/.zoxide.nu
2024-04-20 18:47:52 -07:00
2024-03-31 00:52:09 -07:00
def bump [] {
2024-04-28 10:20:53 -07:00
cd /home/tao/projects/NOflake/
jj new -m "bump"
nix flake update
2024-04-20 18:47:52 -07:00
# rc2nix | save -f /home/tao/projects/NOflake/users/tao/plasma.nix;
2024-04-28 10:20:53 -07:00
sudo nixos-rebuild boot --flake /home/tao/projects/NOflake/ --impure --verbose
}
2024-04-20 18:47:52 -07:00
def tse [exit_node] {
2024-04-27 13:09:00 -07:00
tailscale set --exit-node=$exit_node
2024-04-20 18:47:52 -07:00
}
2024-03-22 15:15:33 -07:00
alias b = btm;
2024-03-15 12:47:44 -07:00
alias cringe = sudo bootctl set-oneshot auto-windows
2024-03-17 00:22:50 -07:00
alias fetch = neofetch
2024-03-15 12:47:44 -07:00
alias ff = firefox
2024-04-25 15:48:29 -07:00
alias gc = sudo nix-collect-garbage -d --verbose
2024-03-15 14:41:13 -07:00
alias js = jj status
alias jd = jj diff
2024-03-15 12:47:44 -07:00
alias pu = pueue
2024-04-19 13:12:45 -07:00
alias rb = sudo nice -n19 nixos-rebuild boot --flake . --impure --verbose
alias rs = sudo nice -n19 nixos-rebuild switch --flake . --impure --verbose
2024-03-15 12:47:44 -07:00
alias t = task
alias ts = tailscale
alias tss = tailscale status
alias tsx = tailscale exit-node list
alias zl = zellij
2024-04-25 15:48:29 -07:00
def l [] {
ls | sort-by type
}
2024-04-28 10:20:53 -07:00
def c [$path] {
cd $path;
l;
2024-04-27 13:09:00 -07:00
}
2024-03-15 12:47:44 -07:00
task