nushmhel
This commit is contained in:
parent
ca60659236
commit
f45a6d9f37
2 changed files with 32 additions and 59 deletions
|
|
@ -1,25 +1,28 @@
|
||||||
alias xo = xdg-open
|
|
||||||
# alias h = hx (sk)
|
|
||||||
alias b = btm
|
alias b = btm
|
||||||
alias cringe = sudo bootctl set-oneshot auto-windows
|
alias d = sudo dmesg -w
|
||||||
alias fetch = fastfetch
|
alias p = pueue
|
||||||
alias ff = firefox
|
|
||||||
alias pu = pueue
|
|
||||||
alias t = task
|
|
||||||
alias zl = zellij
|
alias zl = zellij
|
||||||
|
alias fetch = fastfetch
|
||||||
alias snapper = snapper -c home
|
alias snapper = snapper -c home
|
||||||
alias follow = readlink -f
|
alias follow = readlink -f
|
||||||
alias la = ls -a
|
# alias cringe = sudo bootctl set-oneshot auto-windows
|
||||||
|
|
||||||
|
def h [query?: path] {
|
||||||
|
(if ($query != null) {sk -1 -q ($query | path basename)} else {sk -1})
|
||||||
|
| complete
|
||||||
|
| if $in.exit_code == 0 {
|
||||||
|
$in.stdout | str trim | hx $in
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def srg [] {
|
||||||
|
sk --ansi -i -c 'rg --color=always --line-number "{}"'
|
||||||
|
}
|
||||||
|
|
||||||
alias quiet = sudo ectool fanduty 42
|
alias quiet = sudo ectool fanduty 42
|
||||||
alias loud = sudo ectool autofanctrl
|
alias loud = sudo ectool autofanctrl
|
||||||
alias louder = sude ectool fanduty 100
|
alias louder = sude ectool fanduty 100
|
||||||
|
|
||||||
# alias cp-full = cp
|
|
||||||
alias ccp = cp -prv
|
|
||||||
# alias mv-full = mv
|
|
||||||
alias mvp = mv-full -pv
|
|
||||||
|
|
||||||
alias j = jj
|
alias j = jj
|
||||||
alias ja = jj log -r 'all()'
|
alias ja = jj log -r 'all()'
|
||||||
alias jc = jj desc
|
alias jc = jj desc
|
||||||
|
|
@ -27,7 +30,6 @@ alias jd = jj diff
|
||||||
alias je = jj edit
|
alias je = jj edit
|
||||||
alias jf = jj git fetch
|
alias jf = jj git fetch
|
||||||
alias jg = jj git clone --colocate
|
alias jg = jj git clone --colocate
|
||||||
# alias jm = jj bookmark set main
|
|
||||||
alias jp = jj git push
|
alias jp = jj git push
|
||||||
alias js = jj status
|
alias js = jj status
|
||||||
alias jw = jj workspace update-stale
|
alias jw = jj workspace update-stale
|
||||||
|
|
@ -40,3 +42,16 @@ def jm --wrapped [-r: string = "@", ...rest] {
|
||||||
jj bookmark set main -r $r ...$rest
|
jj bookmark set main -r $r ...$rest
|
||||||
jj git push
|
jj git push
|
||||||
}
|
}
|
||||||
|
|
||||||
|
alias la = ls -a
|
||||||
|
alias ccp = cp -prv
|
||||||
|
alias mvp = mv-full -pv
|
||||||
|
|
||||||
|
def --env c [path: path = "~"] {
|
||||||
|
cd $path
|
||||||
|
l
|
||||||
|
}
|
||||||
|
|
||||||
|
def l --wrapped [...rest] {
|
||||||
|
ls ...$rest | sort-by type name -i -n
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,50 +1,9 @@
|
||||||
# task
|
|
||||||
|
|
||||||
def h [query?: path] {
|
|
||||||
(if ($query != null) {sk -1 -q ($query | path basename)} else {sk -1})
|
|
||||||
| complete
|
|
||||||
| if $in.exit_code == 0 {
|
|
||||||
$in.stdout | str trim | hx $in
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def --env c [path: path = "~"] {
|
|
||||||
cd $path
|
|
||||||
l
|
|
||||||
}
|
|
||||||
|
|
||||||
def l [
|
|
||||||
--all (-a)
|
|
||||||
--long (-l)
|
|
||||||
path: path = "."
|
|
||||||
] {
|
|
||||||
if $all and $long {
|
|
||||||
ls -la $path
|
|
||||||
} else if $all {
|
|
||||||
ls -a $path
|
|
||||||
} else if $long {
|
|
||||||
ls -l $path
|
|
||||||
} else {
|
|
||||||
ls $path
|
|
||||||
}
|
|
||||||
| sort-by type name -i -n
|
|
||||||
}
|
|
||||||
|
|
||||||
def srg [] {
|
|
||||||
sk --ansi -i -c 'rg --color=always --line-number "{}"'
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def "config stuff" [] {
|
def "config stuff" [] {
|
||||||
hx ~/projects/NOflake/users/tao/nushell/stuff.nu
|
hx ~/projects/NOflake/users/tao/nushell/stuff.nu
|
||||||
}
|
}
|
||||||
def deluge-gtk [] {
|
|
||||||
tsr
|
|
||||||
deluge-gtk
|
|
||||||
}
|
|
||||||
alias deluge = deluge-gtk
|
|
||||||
def fixme [] {
|
def fixme [] {
|
||||||
rg TODO --json
|
rg FIXME --json
|
||||||
| lines
|
| lines
|
||||||
| each {from json}
|
| each {from json}
|
||||||
| where type == "match"
|
| where type == "match"
|
||||||
|
|
@ -53,8 +12,7 @@ def fixme [] {
|
||||||
| each {$"($in.text):($in.line_number)"}
|
| each {$"($in.text):($in.line_number)"}
|
||||||
| hx ...$in
|
| hx ...$in
|
||||||
}
|
}
|
||||||
# source ~/.cache/starship/init.nu
|
|
||||||
# source ~/.cache/carapace/init.nu
|
|
||||||
source ~/.zoxide.nu
|
source ~/.zoxide.nu
|
||||||
def --env z [path: string = "~"] {
|
def --env z [path: string = "~"] {
|
||||||
zo $path
|
zo $path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue