mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 07:07:46 +00:00
Case insensitive and reformatted make completions (#515)
* case-insensitive makefile completion * format makefile completions
This commit is contained in:
parent
c698547b3b
commit
35db6d1e28
1 changed files with 60 additions and 51 deletions
|
@ -1,5 +1,14 @@
|
|||
def "nu-complete make" [] {
|
||||
open ./Makefile|lines|find ':'|where ($it|str starts-with '.') == false|split column ' '|get column1|find ':'|str replace ':' ''
|
||||
ls
|
||||
| find --ignore-case makefile
|
||||
| open $in.0.name
|
||||
| lines
|
||||
| find ':'
|
||||
| where ($it | str starts-with '.') == false
|
||||
| split column ' '
|
||||
| get column1
|
||||
| find ':'
|
||||
| str replace ':' ''
|
||||
}
|
||||
|
||||
def "nu-complete make jobs" [] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue