Adds a Starship prompt on the right and a timestamp on the left.
Environment conversions
Nushell isn’t my login shell yet.
This logic converts existing environment variables to Nu equivalents.
So far it works on Linux, Windows, and macOS.
Nu libraries and plugins
I don’t have many yet, but here’s where Nu should expect to find them.
Path management
Environment variables in Nushell are a bit more strict than other shells.
You can’t just re-export.
You have to redeclare.
So this function helps me with my most common case:
managing entries in the executable path.
If new_path isn’t already in $env.PATH,
a new $env.PATH is declared by prepending the new path to the current list of paths.
And then I use it for the paths I care about most.
Mostly useful when using Nushell as login,
since these entries are usually picked up from the parent shell.
Kinda suggests maybe these invocations should go in login.nu.
Miscellaneous
Load the script that nicely formats Taskwarrior output.
Add a function to read from EDN sources such as output by nbb-logseq.
Requires the jet CLI tool.