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
ab5490bea6
Add README.md badges ( #5 )
2019-04-15 14:38:45 -04:00
Matan Kushner
d2cda32c87
Better test and document the dir segment
2019-04-15 12:04:53 -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
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
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
Matan Kushner
67ab2121c5
Add note and test regarding paths being physical
2019-04-09 00:04:50 -04:00
Matan Kushner
969840a157
Tidy up dir section
2019-04-08 23:35:14 -04:00
Matan Kushner
d58ea0659b
Add a new line before the prompt
2019-04-08 17:35:38 -04:00
Matan Kushner
0e0bed0837
Use truncate_path to simplify dir
2019-04-08 15:33:06 -04:00
Matan Kushner
5086ba2f50
A bit of tidying up
2019-04-07 23:28:38 -04:00
Matan Kushner
168a6fd7b1
Add proper git project root truncation
2019-04-07 23:23:37 -04:00
Matan Kushner
3c07e284fe
Add some clarifying documentation
2019-04-07 17:17:40 -04:00
Matan Kushner
fdacd1cf28
Readd home dir truncation
2019-04-07 17:12:22 -04:00
Matan Kushner
ff94c9f25f
Use git project root for truncation
2019-04-07 16:43:11 -04:00
Matan Kushner
c79cbe63b1
Add stringify_segment rustdoc
2019-04-04 21:35:24 -04:00
Matan Kushner
472b66894d
Rename segements
2019-04-04 20:35:35 -04:00