Zhenhui Xie
22dc419a3e
improvement: add parser for format strings ( #1021 )
...
This PR implements the parser of format strings described in #624 .
2020-04-06 13:16:18 -04:00
Jon Grythe Stødle
8e5fa60fc8
feat: Add the `starship explain` command ( #699 )
...
This adds the explain argument to Starship, which explains what the printed modules in the prompt are.
2020-01-01 23:19:08 -05:00
Matan Kushner
05210b9510
refactor: Go from Rust workspaces to a package with nested packages ( #480 )
2019-10-04 22:30:46 +09:00
Zhenhui Xie
dd0b1a1aa2
refactor: Refactoring config ( #383 )
...
This PR refactors config and puts configuration files for all modules in `configs/`.
2019-09-30 21:10:35 +09:00
Neil Kistner
aa26c5bca4
fix: Update Module::is_empty to check value of segments ( #332 )
...
Previously, a set of empty segments would cause the module to print. This changes the
logic of Module::is_empty to check that all the segments are empty instead.
2019-09-16 00:03:44 -05:00
Nick Young
7e891f17c1
perf: Lazy load files from directory ( #335 )
...
Changes context to use `once_cell` to lazily evaluate directory listing on first use.
2019-09-14 09:23:53 -05:00
Matan Kushner
f40f73dc8e
fix: Address longstanding linter errors
2019-08-05 11:05:08 -04:00
Matan Kushner
097f1b05f1
Add support for prompt configuration ( #62 )
...
- Create `Config` struct that is added to `Context` when initialized
- Read `~/.confg/starship.toml` during initialization (can be updated later to also look at `$XDG_CONFIG_HOME`)
- `Context` now has a method for creating modules. This allows us to provide modules with a reference to the configuration specific to that module
2019-06-10 15:56:17 +01:00
Matan Kushner
c6ee5c6ac1
Refactor segments into modules ( #40 )
2019-05-01 16:34:24 -04:00
Matan Kushner
bca4a7079f
Fix bug in path truncation
...
Paths with 3 components would truncate to 2 despite the truncation length begin set to 3.
2019-04-15 11:40:40 -04:00
Matan Kushner
4ce4899f81
Add fish_prompt
2019-04-13 00:34:56 -04:00
Matan Kushner
240fb6a02c
Add some documentation for segment
2019-04-12 23:11:00 -04:00
Matan Kushner
9d4492c313
Make segments optionals
2019-04-12 23:06:48 -04:00
Matan Kushner
d62bb107f2
Remove unnecessary lifetimes
2019-04-12 19:18:47 -04:00
Matan Kushner
a0e4172602
Use copy to return segment
2019-04-12 19:11:40 -04:00
Matan Kushner
fec5c4db4e
Use builder pattern in char section
2019-04-12 18:12:29 -04:00
Matan Kushner
d82ebc4457
Add builder pattern for segment
2019-04-12 17:49:20 -04:00