58 lines
1.1 KiB
Text
58 lines
1.1 KiB
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 l [
|
|
path?
|
|
flags?
|
|
] {
|
|
if $path {
|
|
ls $path
|
|
} else {
|
|
ls
|
|
} | sort-by type name -i
|
|
}
|
|
|
|
def tse [exit_node?] {
|
|
if exit_node {
|
|
tailscale set --exit-node $exit_node
|
|
} else {
|
|
tailscale set --exit-node=""
|
|
}
|
|
}
|
|
|
|
def rb [] {
|
|
sudo nice -n19 nixos-rebuild boot --flake . --impure --verbose
|
|
hx --grammar fetch; hx --grammar build
|
|
}
|
|
|
|
def rs [] {
|
|
sudo nice -n19 nixos-rebuild boot --flake . --impure --verbose
|
|
hx --grammar fetch; hx --grammar build
|
|
}
|
|
|
|
|
|
alias ard = arduino-cli
|
|
alias arduino-cli = boxxy arduino-cli
|
|
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 jd = jj diff
|
|
alias js = jj status
|
|
alias pu = pueue
|
|
alias t = task
|
|
alias ts = tailscale
|
|
alias tss = tailscale status
|
|
alias tsx = tailscale exit-node list
|
|
alias zl = zellij
|
|
|
|
task
|