stufe
This commit is contained in:
parent
89042ffe3b
commit
a4ef3a984f
6 changed files with 23 additions and 13 deletions
|
|
@ -35,6 +35,7 @@ alias jg = jj git clone --colocate
|
|||
alias jp = jj git push
|
||||
alias js = jj status
|
||||
alias jw = jj workspace update-stale
|
||||
alias jt = jj log -r @ -T `description`
|
||||
|
||||
def jm --wrapped [-r: string = "@", ...rest] {
|
||||
mut r = $r
|
||||
|
|
|
|||
|
|
@ -1,14 +1,3 @@
|
|||
alias nd = nix develop
|
||||
|
||||
def ns [...packages: string] {
|
||||
let packages = $packages | each {$"nixpkgs#($in)"}
|
||||
nix shell ...$packages
|
||||
}
|
||||
|
||||
# def nr [package] {
|
||||
# nix search nixpkgs $package
|
||||
# }
|
||||
|
||||
def --wrapped rebuild [--force (-f), subcommand, ...rest] {
|
||||
if not (
|
||||
df -h | detect columns --guess | where "Mounted on" == "/" or "Mounted on" == "/boot" | get Use% | each {parse "{usage}%" | get usage | into int} | flatten | all {$in < 99}
|
||||
|
|
@ -27,7 +16,7 @@ def --wrapped rebuild [--force (-f), subcommand, ...rest] {
|
|||
}
|
||||
|
||||
ulimit -n 65535
|
||||
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --accept-flake-config --impure --verbose ...$rest o+e>| nom
|
||||
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --accept-flake-config --impure --show-trace --verbose ...$rest o+e>| nom
|
||||
|
||||
if $env.LAST_EXIT_CODE == 0 {
|
||||
toastify send "rebuild" "done!"
|
||||
|
|
@ -38,6 +27,17 @@ def --wrapped rebuild [--force (-f), subcommand, ...rest] {
|
|||
}
|
||||
}
|
||||
|
||||
alias nd = nix develop
|
||||
|
||||
def ns [...packages: string] {
|
||||
let packages = $packages | each {$"nixpkgs#($in)"}
|
||||
nix shell ...$packages
|
||||
}
|
||||
|
||||
# def nr [package] {
|
||||
# nix search nixpkgs $package
|
||||
# }
|
||||
|
||||
def post-rebuild [] {
|
||||
rm -r ~/.config/helix/runtime/grammars/
|
||||
hx --grammar fetch; hx --grammar build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue