summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2019-08-27fix: use procsub in bash since termux has no stdin (#241)Bruno Bigras
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-26refactor: just match enum (#236)Ivan Tham
Remove forced unwrap since match is already exhausted
2019-08-26make the battery module optional for now (#234)Bruno Bigras
The 'battery' crate doesn't support Termux, so we are temporarily making the battery module optional.
2019-08-25fix: battery percentage character on Zsh. #226 (#237)TsubasaKawajiri
on Zsh, battery percentage character would print % this PR fixes print %{ -> %
2019-08-25Add nix-shell support (#173)Bruno Bigras
2019-08-23style: Fix clippy warningsMatan Kushner
2019-08-22Use full path to starship in all phases of init (#224)Bruno Bigras
2019-08-21Add support for detecting Python from Pipenv files (#221)Thomas O'Donnell
Added the ability to enable the Python module based on the existence of the a `Pipfile`.
2019-08-21Add ruby to default module ordering (#217)Kevin Song
2019-08-20fix: Correct ZSH init on older ZSH versions (#213)Kevin Song
2019-08-20fix: Change panicking on unknown module to error print and support module ↵Saurav Sharma
listing flag (#197)
2019-08-19feat: Implement a two-phase init which allows us to write normal init ↵Kevin Song
scripts (#168) Implement a two-phase init procedure in starship. The first phase causes the shell to source a subshell, while the second phase (in the subshell) prints the main init script. This allows us to have nice init scripts with good styling, comments, and no pile of semicolons. Even better, it works as a drop-in replacement, so we don't need to update the docs.
2019-08-18feat: Add configuration for reordering the prompt module and disabling ↵Saurav Sharma
default order (#171) Adds functionality for reordering the prompt module through the use of the prompt_order configuration option in starship.toml
2019-08-18fix: Solve bash & zsh cursor location confusion issue (#183)Saurav Sharma
Solves the issue of cursor location confusion on bash and zsh (#110) . Solution: modify ANSIString and wrap non-printing characters with correct escape sequences.
2019-08-18fix: Set default prompt character to ❯ (#177)Kevin Song
2019-08-18fix: Correct broken zsh init in absence of precmd_functions (#180) Kevin Song
2019-08-17fix a few typos (#178)Saghm Rossi
2019-08-17feat: Allow bash users to specify a precmd function (#166)Kevin Song
Allows bash users to run a function before the shell is drawn, by defining a function and setting its name equal to starship_precmd_user_func.
2019-08-17feat: Display Vi mode as PROMPT (#169)Shu Kutsuzawa
Add Vi-mode indicator for zsh
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-15feat: Display Python package version from poetry (#153)Kevin Lane
2019-08-13feat: implement `cmd_duration` for bash (#144)Kevin Song
2019-08-13feat: implement the ruby module (#131)André Zanellato
2019-08-13fix: Fix exception caused by the golang moduleMatan Kushner
Fixes #148
2019-08-13fix: Fix issues with nodejs and golang configuration (#146)Matan Kushner
* fix: Give all modules a single name * test: Add missing config tests for nodejs and golang * test: Rename dir to directory
2019-08-12fix: Fix issue with jobs and extra whitespace on MacOS with BSD… (#145)Kevin Song
MacOS wc has a habit of leaving nasty spaces in the output, which was messing up our argparser. To fix, quote the output from the jobs command, then have Rust trim out whitespace in the jobs module before parsing.
2019-08-12feat: Implement configuration to display pyenv version name (#140)MaT1g3R
This behavior can be enabled via setting `use_pyenv` to true. The "pyenv" prefix before the version name can be configured using `pyenv_prefix`.
2019-08-12feat: Implement the prompt module for jobs (#85)John Letey
2019-08-11fix: Move the battery to the newline before character (#139)Matan Kushner
2019-08-11feat: Implement Python virtual environment display (#137)MaT1g3R
2019-08-10feat: Add configuration to change the character for non-zero sta… (#133)Kevin Song
Prompt can now switch characters in addition to switching character color. Add configuration options in so that users can do either, both, or neither.
2019-08-10fix: Add test attribute to cmd_duration tests (#134)Kevin Song
2019-08-08feat: implement timer module (#118)Kevin Song
Implement a timer module that takes a commandline argument, the number of seconds the last job took to complete, and displays it if appropriate. Alters shell initialization files to compute this number using date +%s where needed. Adds a config section to configure minimum amount of time before timer is shown (default is 2s)
2019-08-05fix: Address longstanding linter errorsMatan Kushner
2019-08-05ci: Publish crate to Crates.io with CIMatan 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-27feat: Add configuration for add_newline (#116)Matan Kushner
- Replace TableExt with a Config trait that extends toml::value::Table Add configuration for add_newline - add_newline is a root-level configuration value. When set to false, the initial newline before the prompt is removed.
2019-07-23fix: prompt now updates on bash and zsh (#109)Matan Kushner
Making use of PROMPT_COMMAND in bash and precmd in zsh, the prompt is no longer being expanded and rendered when the variable is initially set.
2019-07-20fix: handle path to shell in starship init (#106)Kevin Song
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-19refactor: Improve logging where lackingMatan Kushner
2019-07-19refactor: Better document context contentsMatan Kushner
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-03feat: Implement simplified prompt setup process (#90)Matan Kushner
• Add starship init which prints the shell function used to execute starship • Document the new setup process using starship init • Remove benchmarks for now (WIP replacement benchmarks in "benchmarking" branch )
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