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:
parent
80df447c83
commit
c5865e0825
10 changed files with 311 additions and 38 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue