NOflake/users/tao/nushell/extras/alias.nu

42 lines
925 B
Text
Raw Normal View History

2025-02-20 14:55:55 -08:00
alias xo = xdg-open
# alias h = hx (sk)
alias b = btm
alias cringe = sudo bootctl set-oneshot auto-windows
alias fetch = fastfetch
alias ff = firefox
alias pu = pueue
alias t = task
alias zl = zellij
alias snapper = snapper -c home
alias follow = readlink -f
alias la = ls -a
alias quiet = sudo ectool fanduty 42
alias loud = sudo ectool autofanctrl
alias cp-full = cp
alias cp = cp -prv
alias mv-full = mv
alias mv = mv -pv
alias j = jj
alias ja = jj log -r 'all()'
alias jc = jj desc
alias jd = jj diff
alias je = jj edit
alias jf = jj git fetch
alias jg = jj git clone --colocate
2025-02-20 23:37:01 -08:00
# alias jm = jj bookmark set main
2025-02-20 14:55:55 -08:00
alias jp = jj git push
alias js = jj status
alias jw = jj workspace update-stale
2025-03-08 22:35:46 -08:00
def jm --wrapped [-r: string = "@", ...rest] {
2025-03-06 17:44:40 -08:00
mut r = $r
if (jj log -r @ --no-pager --no-graph --template 'if(empty,"empty")' | $in == "empty") {
$r = "@-"
}
2025-03-08 22:35:46 -08:00
jj bookmark set main -r $r ...$rest
2025-02-20 23:37:01 -08:00
jj git push
}