mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 07:07:46 +00:00
finish example thanks to fdncred
Pure gold: https://github.com/nushell/nu_scripts/pull/104#issuecomment-956335793
This commit is contained in:
parent
eb0dc27f4a
commit
275893f40b
1 changed files with 6 additions and 1 deletions
|
@ -1 +1,6 @@
|
|||
ls -a | where | { each { echo $it.name | str starts-with '.'} }
|
||||
|
||||
def ls-hidden [
|
||||
--dir(-d):any # The directory you want to list
|
||||
] {
|
||||
ls -a $dir | where { ($it.name | into string | str starts-with '.') }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue