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
Tim Mulqueen
5fd715e7c3
Implement directory scanner ( #34 )
2019-05-12 13:37:23 -04:00
Matan Kushner
c6ee5c6ac1
Refactor segments into modules ( #40 )
2019-05-01 16:34:24 -04:00
Matan Kushner
9a352c0acc
Add the Git branch segment ( #32 )
...
Added
- Repository to Context for reuse in directory and git_branch
- git_branch to prompt
Changed
- Made segments bold to match spaceship
2019-04-26 22:07:07 -04:00
Matan Kushner
bb2bcd604b
Share dir_files between segments through Context ( #16 )
2019-04-23 14:51:08 -04:00
Matan Kushner
022e0002e4
Use "context" to contain run details ( #14 )
...
* Create "context" to contain run details
* Use context in tests and benchmarks
2019-04-19 16:57:14 -04:00
Matan Kushner
794ae7b2ad
Add integration tests ( #6 )
...
### Changed
- Added current_dir param to segments to make them more testable
- Moved all existing integration tests to a `tests/` dir
### Added
- A whole bunch of new integration tests
2019-04-15 20:54:52 -04:00
Matan Kushner
9d4492c313
Make segments optionals
2019-04-12 23:06:48 -04:00
Matan Kushner
a0e4172602
Use copy to return segment
2019-04-12 19:11:40 -04:00
Matan Kushner
d82ebc4457
Add builder pattern for segment
2019-04-12 17:49:20 -04:00
Matan Kushner
ab9ba27231
Revert "Parallelize nodejs file checks"
...
This reverts commit 99bdf27eca
.
2019-04-12 13:10:31 -04:00
Matan Kushner
99bdf27eca
Parallelize nodejs file checks
2019-04-12 13:07:41 -04:00
Matan Kushner
7ffadd37bc
Remove duplicate tests
2019-04-11 20:04:04 -04:00
Matan Kushner
c1f5a733c9
More progress in Node section
2019-04-11 19:31:30 -04:00
Matan Kushner
d5493d236d
Begin writing Node section
2019-04-10 09:22:11 -04:00