NOflake/users/tao/nushell/stuff.nu

41 lines
911 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-09 10:06:48 -07:00
cd /home/tao/projects/NOflake/;
2024-04-14 04:24:36 -07:00
jj new -m "bump";
2024-03-31 00:52:09 -07:00
nix flake update;
2024-04-20 18:47:52 -07:00
# rc2nix | save -f /home/tao/projects/NOflake/users/tao/plasma.nix;
sudo nixos-rebuild boot --flake /home/tao/projects/NOflake/ --impure --verbose;
2024-03-31 00:52:09 -07:00
};
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-27 13:09:00 -07:00
def c [] {
cd; l;
}
2024-03-15 12:47:44 -07:00
task