summaryrefslogtreecommitdiffstats
path: root/src/modules/directory.rs
AgeCommit message (Collapse)Author
2019-12-09fix: Truncate long paths in conda environment names (#694)AppleTheGolden
Environment names created via conda create -p [path] tend to be too long for comfort, so this truncates them.
2019-12-06feat: Add prefix config to directory module (#642)Dan Wendorf
2019-11-29fix: Fix panic when using fish-style pwd with unicode symbols (#672)Raidou
2019-10-24fix: Use logical path instead of physical path when available (#398)Zhenhui Xie
* Get pathbuf from logical path. (fixes #204) (also fixes #397) * fix: Update directory module so that use_logical_path will work properly * Remove test directory::use_logical_and_physical_paths * Fix merge errors Co-authored-by: Matan Kushner <hello@matchai.me>
2019-10-20Refactor: Remove unnecessary parentheses in if condition (#566)Clément Joly
2019-10-15refactor: Rewrite cmd_duration, directory and env_var module to use module ↵Zhenhui Xie
config (#460) This PR is a batched rewrite of the following modules: - cmd_duration - directory - env_var
2019-10-15fix: Show leading slash when truncating from root (#526)Keith Wade
2019-10-04refactor: Go from Rust workspaces to a package with nested packages (#480)Matan Kushner
2019-09-30refactor: Refactoring config (#383)Zhenhui Xie
This PR refactors config and puts configuration files for all modules in `configs/`.
2019-09-28feat: Use tilde for home_directory when under version control (#439)yuri
2019-09-20feat: add support for logical paths in directory (#366)Kevin Song
Adds the ability for starship to display the logical path instead of the physical path.
2019-09-20fix: fish_pwd option handles repeated directories properly (#399)Neil Kistner
2019-09-09fix: Lazy load git repo and only run module if not disabled (#306)Neil Kistner
A couple of optimizations are done in this PR. One, we now will check config ahead of time to see if a module is disabled before running any module code. Also, we won't try to discover a git repository unless the module requests access to it.
2019-09-07feat: Add the ability to configure per-module color styles (#285)Kevin Song
Add parsing logic, config support, docs, and integration with other modules for custom styling of each module.
2019-08-26feat: Add ability to use an alternate directory truncation style (#239)Neil Kistner
* Add ability to use an alternate directory truncation style
2019-08-16feat: Add option to control git directory truncation (#165)Saghm Rossi
2019-08-16docs: Fix typo in directory module description (#163)Saghm Rossi
2019-08-05fix: Address longstanding linter errorsMatan Kushner
2019-07-28feat: Allow directory truncation length to be configured (#120)Andrew Dassonville
This allows the directory truncation length to be configured. Previously, it was hard-coded to truncate to 3 parent directories.
2019-07-28feat: Use Unix-style slash on Windows (#119)Andrew Dassonville
Prior to this change, starship would use inconsistent slashes when displaying the working directory. With this change, starship uses Unix-style slashes on all platforms. This is consistent with the Git Bash and Cygwin prompts on Windows.
2019-07-19docs: Add vuepress with initial docs (#99)Tiffany Le-Nguyen
Co-authored-by: Tiffany Le-Nguyen <tlenguyen@expedia.com> Co-authored-by: Matan Kushner <hello@matchai.me>
2019-07-14ci: Add GitHub releases to CI (#95)Matan Kushner
2019-07-14chore: Refactor getting string values from config (#94)Matan Kushner
2019-07-02feat: Add a `disabled` configuration option for modules (#86)Matan Kushner
• Add support for the disabled configuration option This will allow you to selectively disable modules that you don't want or need. 😄 • Overwrite starship configuration file path with STARSHIP_CONFIG environment variable • Write tests for the two configuration options that are available
2019-06-10Add support for prompt configuration (#62)Matan Kushner
- 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-05-19feat: Implement the prompt module for username (#56)Youssef Habri
2019-05-16ci: Fix CI to work with changes to Azure Pipelines build agent (#55)Matan Kushner
2019-05-09Parallelize prompt modules (#46)Matan Kushner
2019-05-01Refactor segments into modules (#40)Matan Kushner
2019-04-26Add the Git branch segment (#32)Matan Kushner
Added - Repository to Context for reuse in directory and git_branch - git_branch to prompt Changed - Made segments bold to match spaceship
2019-04-23Share dir_files between segments through Context (#16)Matan Kushner
2019-04-19Use "context" to contain run details (#14)Matan Kushner
* Create "context" to contain run details * Use context in tests and benchmarks
2019-04-15Add integration tests (#6)Matan Kushner
### 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-15Add README.md badges (#5)Matan Kushner
2019-04-15Better test and document the dir segmentMatan Kushner
2019-04-15Fix bug in path truncationMatan Kushner
Paths with 3 components would truncate to 2 despite the truncation length begin set to 3.
2019-04-12Make segments optionalsMatan Kushner
2019-04-12Remove unnecessary lifetimesMatan Kushner
2019-04-12Use copy to return segmentMatan Kushner
2019-04-11More progress in Node sectionMatan Kushner
2019-04-10Begin writing Node sectionMatan Kushner
2019-04-09Add note and test regarding paths being physicalMatan Kushner
2019-04-08Tidy up dir sectionMatan Kushner
2019-04-08Add a new line before the promptMatan Kushner
2019-04-08Use truncate_path to simplify dirMatan Kushner
2019-04-07A bit of tidying upMatan Kushner
2019-04-07Add proper git project root truncationMatan Kushner
2019-04-07Add some clarifying documentationMatan Kushner
2019-04-07Readd home dir truncationMatan Kushner
2019-04-07Use git project root for truncationMatan Kushner