nushmhel
This commit is contained in:
parent
ca60659236
commit
f45a6d9f37
2 changed files with 32 additions and 59 deletions
|
|
@ -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" [] {
|
||||
hx ~/projects/NOflake/users/tao/nushell/stuff.nu
|
||||
}
|
||||
def deluge-gtk [] {
|
||||
tsr
|
||||
deluge-gtk
|
||||
}
|
||||
alias deluge = deluge-gtk
|
||||
|
||||
def fixme [] {
|
||||
rg TODO --json
|
||||
rg FIXME --json
|
||||
| lines
|
||||
| each {from json}
|
||||
| where type == "match"
|
||||
|
|
@ -53,8 +12,7 @@ def fixme [] {
|
|||
| each {$"($in.text):($in.line_number)"}
|
||||
| hx ...$in
|
||||
}
|
||||
# source ~/.cache/starship/init.nu
|
||||
# source ~/.cache/carapace/init.nu
|
||||
|
||||
source ~/.zoxide.nu
|
||||
def --env z [path: string = "~"] {
|
||||
zo $path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue