Why:
1. `$_` is marked as deprecated
https://fishshell.com/docs/current/language.html#envvar-_
2. `$_` contains wrong process name in cases like this one:
```fish
sleep 1000 # `sleep` is the process, now press Ctrl-Z to suspend
fg # unsuspend it, now `fg` is shown as the process
```
`status current-command` will show `sleep` instead, which makes more
sense.
A refactor changed this block from a `set git_dir $PWD` to
`set git_dir $real_pwd`, but as `real_pwd` is a "static" variable and
not dynamically computed, this breaks within the `pushd` / `popd` flow.
Instead of using `$real_pwd`, we need to compute the *current* directory
by calling `__bobthefish_pwd` again.
Fixes#249.
This is an rootless alternative to docker container tool. It has a bunch of
benefits. For more information see:
https://podman.io/
The main reason why to have this support is `toolbox` tool which is used as a
primary tool for development on immutable system (not-only) such as
Fedora SilverBlue. The immutability of the system is replaced by creating
containers for projects and work inside these containers. For more info see:
https://docs.fedoraproject.org/en-US/fedora-silverblue/toolbox/
It's really nice to have this feature here because toolbox will use
configuration of the system in the container as it is in host so it's pretty
reasonable to use fish inside the container but know that I'm in the container
right now.
* Add FNM as an alternative to NVM
* Made the __bobthefish_prompt_nvm generic for nvm and fnm
* Hide errors on node_manager current
* Check for color_nvm and set color_node based on that
* Make main behave like master branch
* Check list of default git branches
* Use new theme var with better name
* Update documentation around git default branch names
* Tracks the session expiration information and adds this to
the segment as well (if available - which it should be).
* Using basic blue/white colours at the moment.
* Added doco including link to AWS Vault repo.
Previously it would add `No` as the ruby version, which was factually correct but not at all what we were looking for. This omits the ruby segment entirely if the adsf plugin for ruby is not installed, or if there is no current ruby version specified.
Unfortunately this means we can't have a pretty arrow between the binding mode indicator and the rest of the prompt, but it's better than never updating the indicator :-/
Fixes#248
Invoking the `kubectl` command can be expensive, and since there's not a
lot of time to play with when rendering the prompt without it feeling
slugging, make the namespace fetching optional.