mirror of
https://github.com/sbrow/envr.git
synced 2025-12-29 15:47:38 -05:00
feat: envr list now shows paths relative to home.
This commit is contained in:
7
mod.nu
7
mod.nu
@@ -192,7 +192,12 @@ export def "envr init" [
|
||||
|
||||
# View your tracked files
|
||||
export def "envr list" [] {
|
||||
(files | reject contents)
|
||||
(
|
||||
files
|
||||
| reject contents
|
||||
| update path { $in | path relative-to ~/ | $'~/($in)' }
|
||||
| update dir { $in | path relative-to ~/ | $'~/($in)' }
|
||||
)
|
||||
}
|
||||
|
||||
# List all the files in the database
|
||||
|
||||
Reference in New Issue
Block a user