This is bookmark management tool for nushell. You can use this tool to manage bookmarks and change the director.
-
find
env.nu
echo $nu.env-path
-
edit
env.nu
# append source /path/bookmark_for_dir.nu
add the current path as a bookmark
# bm -a BOOKMARK_DESC
# eg:
~\.config\test1> bm -a first_bookmark
SUCCESS
list all bookmark
~\.config\test2> bm
╭───┬─────────────────┬──────────────────────────────────────╮
│ # │ desc │ path │
├───┼─────────────────┼──────────────────────────────────────┤
│ 0 │ first_bookmark │ C:\Users\Administrator\.config\test1 │
│ 1 │ second_bookmark │ C:\Users\Administrator\.config\test2 │
╰───┴─────────────────┴──────────────────────────────────────╯
press Tab
after bm
will display completion (desc)
Note
There is space after bm
-
change dir by desc
~\.config> bm first_bookmark second_bookmark ~\.config> bm second_bookmark ~\.config\test2>
-
change dir by num
~\.config> bm -c 1 ~\.config\test2>
~\.config\test2> bm -d first_bookmark
╭───┬─────────────────┬──────────────────────────────────────╮
│ # │ desc │ path │
├───┼─────────────────┼──────────────────────────────────────┤
│ 0 │ second_bookmark │ C:\Users\Administrator\.config\test2 │
╰───┴─────────────────┴──────────────────────────────────────╯