1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

powerline : NU_POWER_MODE and NU_POWER_BENCHMARK (#464)

* powerline : NU_POWER_MODE and NU_POWER_BENCHMARK

* zoxide-menu

* direnv

* dynamic-load

* logtime

---------

Co-authored-by: agent <agent@nuc>
This commit is contained in:
fj0r 2023-04-27 02:36:55 +08:00 committed by GitHub
parent 80df447c83
commit c5865e0825
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 311 additions and 38 deletions

View file

@ -1,9 +1,9 @@
def "nu-complete ps" [] {
ps | each {|x| { value: $x.pid, description: $x.name } }
ps -l | each {|x| { value: $"($x.pid)", description: $x.command } }
}
# after <pid> { do something ... }
export def main [pid: string@"nu-complete ps" action ] {
# after { do something ... } <pid>
export def main [action, pid: string@"nu-complete ps"] {
do -i { tail --pid $pid -f /dev/null }
do $action
}