mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-06-06 18:40:47 +00:00
aceda0052f
Add support for paths to init function This adds support for qualified paths (e.g. using `/usr/local/bin/zsh` instead of `zsh`) to init.rs. The function now converts the shell name into an OsStr, then to a Path, then gets the file stem, and unwraps back into a str. While this process can fail (yielding a None), it's highly unlikely to unless the user has messed with their shells or there's an issue in Starship--therefore, the failure message in this case simply asks the user to file a bug report. |
||
---|---|---|
.. | ||
modules | ||
config.rs | ||
context.rs | ||
init.rs | ||
lib.rs | ||
main.rs | ||
module.rs | ||
print.rs | ||
segment.rs | ||
utils.rs |