mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
more tweaking
This commit is contained in:
parent
4dad88ad92
commit
19bd28d4f9
1 changed files with 3 additions and 3 deletions
|
@ -23,9 +23,9 @@ let nu_table = ($nu_files |
|
|||
} | where Category !~ ".git" | select Category File | sort-by Category)
|
||||
|
||||
# Let's fix the file now
|
||||
let nu_table = (echo $nu_table | update File { |it|
|
||||
let file_path = (echo $it.File | into string | str find-replace '\\' '/')
|
||||
let file_name = (echo $file_path | path basename)
|
||||
let nu_table = ($nu_table | update File { |it|
|
||||
let file_path = ($it.File | into string | str find-replace '\\' '/')
|
||||
let file_name = ($file_path | path basename)
|
||||
$"[($file_name)](char lparen)./($file_path)(char rparen)"
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue