1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-06-06 18:40:47 +00:00
starship/src
Kevin Song aceda0052f fix: handle path to shell in starship init (#106)
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.
2019-07-20 13:45:41 -04:00
..
modules refactor: Improve logging where lacking 2019-07-19 18:45:38 -04:00
config.rs refactor: Improve logging where lacking 2019-07-19 18:45:38 -04:00
context.rs refactor: Better document context contents 2019-07-19 18:45:38 -04:00
init.rs fix: handle path to shell in starship init (#106) 2019-07-20 13:45:41 -04:00
lib.rs Add support for prompt configuration (#62) 2019-06-10 15:56:17 +01:00
main.rs feat: Implement simplified prompt setup process (#90) 2019-07-03 08:03:02 -04:00
module.rs chore: Refactor getting string values from config (#94) 2019-07-14 11:15:47 -04:00
print.rs feat: Add a disabled configuration option for modules (#86) 2019-07-02 16:12:53 -04:00
segment.rs Add support for prompt configuration (#62) 2019-06-10 15:56:17 +01:00
utils.rs Add support for prompt configuration (#62) 2019-06-10 15:56:17 +01:00