Commit Graph

675 Commits

Author SHA1 Message Date
Matan Kushner
4c26bf06e9
ci: Update Homebrew token storage 2019-08-12 23:42:14 -04:00
Kevin Song
a87c0750cc fix: Fix issue with jobs and extra whitespace on MacOS with BSD… (#145)
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-12 23:41:59 -04:00
Matan Kushner
1d6ce77a81
chore(bump): v0.8.3 2019-08-12 23:18:52 -04:00
Matan Kushner
35733488a1
chore(bump): v0.8.2 2019-08-12 22:15:02 -04:00
Matan Kushner
67be1e13d4
ci: Update brew before bumping the formula 2019-08-12 22:14:28 -04:00
Matan Kushner
87849c3110
chore(bump): v0.8.1 2019-08-12 21:58:04 -04:00
Matan Kushner
bddd6a3d65
ci: Remove duplicate brew argument 2019-08-12 21:51:37 -04:00
Matan Kushner
6563461564
chore(bump): v0.8.0 2019-08-12 21:33:54 -04:00
Matan Kushner
5a2bd8162d
ci: Automate the bumping of the starship Brew formula (#143) 2019-08-12 21:29:14 -04:00
MaT1g3R
160a79fa06 feat: Implement configuration to display pyenv version name (#140)
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-12 21:12:55 -04:00
Matan Kushner
274042832d
chore(bump): v0.7.0 2019-08-12 13:43:48 -04:00
John Letey
82cf484ced feat: Implement the prompt module for jobs (#85) 2019-08-12 13:42:33 -04:00
allcontributors[bot]
3f6fe50adb docs: add MaT1g3R as a contributor (#142) 2019-08-12 11:59:41 -04:00
Matan Kushner
4c2e9c3304 fix: Move the battery to the newline before character (#139) 2019-08-11 21:46:12 -07:00
MaT1g3R
3669e389b6 feat: Implement Python virtual environment display (#137) 2019-08-11 17:51:13 -04:00
Matan Kushner
53f8ed1cd6
docs: Add Brew installation instructions (#136) 2019-08-10 19:22:28 -04:00
Matan Kushner
5bcbedbabb
chore(bump): v0.6.0 2019-08-10 17:34:20 -04:00
Kevin Song
39598ec691 feat: Add configuration to change the character for non-zero sta… (#133)
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-10 17:30:30 -04:00
Kevin Song
994a865d4d fix: Add test attribute to cmd_duration tests (#134) 2019-08-10 15:47:34 -04:00
allcontributors[bot]
f4bb72045f docs: add chipbuster as a contributor (#127) 2019-08-08 13:39:14 -04:00
Matan Kushner
3b38fc98f0
docs: Add missing period 2019-08-08 13:29:46 -04:00
Matan Kushner
1e0111a6b9
docs: Remove "Planned" from execution time feature 2019-08-08 13:29:05 -04:00
Matan Kushner
98fba0d439
chore(bump): v0.5.0 2019-08-08 13:26:36 -04:00
Kevin Song
3daf3ddf26 feat: implement timer module (#118)
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-08 13:25:30 -04:00
Matan Kushner
b2303d5d8e
chore(bump): v0.4.1 2019-08-05 11:35:53 -04:00
Matan Kushner
f40f73dc8e fix: Address longstanding linter errors 2019-08-05 11:05:08 -04:00
Matan Kushner
616b50b4e3 ci: Publish crate to Crates.io with CI 2019-08-05 11:05:08 -04:00
dependabot-preview[bot]
9a2af45835 chore(deps): Bump log from 0.4.7 to 0.4.8 (#123)
Bumps [log](https://github.com/rust-lang/log) from 0.4.7 to 0.4.8.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang-nursery/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/commits)
2019-07-29 11:34:32 -04:00
dependabot-preview[bot]
138287ec63 chore(deps): Bump dirs from 2.0.1 to 2.0.2 (#122)
Bumps [dirs](https://github.com/soc/dirs-rs) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/soc/dirs-rs/releases)
- [Commits](https://github.com/soc/dirs-rs/commits)
2019-07-29 11:11:13 -04:00
Matan Kushner
6cfc6ac5bb
docs: Add detail to the truncation_length description 2019-07-28 23:18:24 -04:00
Matan Kushner
409efd9caa
docs: Fix table formatting for prompt config 2019-07-28 23:15:58 -04:00
Matan Kushner
63ce5f1501
chore(bump): v0.4.0 2019-07-28 22:47:48 -04:00
Andrew Dassonville
5dbf4381ac feat: Allow directory truncation length to be configured (#120)
This allows the directory truncation length to be configured. Previously, it was hard-coded to truncate to 3 parent directories.
2019-07-28 21:05:13 -04:00
allcontributors[bot]
ab46710fc4 docs: add andrewda as a contributor (#121) 2019-07-28 20:28:32 -04:00
Andrew Dassonville
75e74e0d74 feat: Use Unix-style slash on Windows (#119)
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-28 20:15:40 -04:00
Matan Kushner
0bc28c521d
feat: Add configuration for add_newline (#116)
- 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-27 18:25:13 -04:00
Matan Kushner
95ce43ee70
docs: Attribute copyright to Starship Contributors (#115) 2019-07-25 12:50:29 -04:00
dependabot-preview[bot]
e1d179ccf2 chore(deps): Bump git2 from 0.9.1 to 0.9.2 (#114)
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/rust-lang/git2-rs/releases)
- [Commits](https://github.com/rust-lang/git2-rs/compare/0.9.1...git2-curl-0.9.2)
2019-07-25 11:32:19 -04:00
Matan Kushner
8aec55b3ba
docs: Make our README.md prettier (with a few added details) (#111) 2019-07-24 12:34:37 -04:00
Matan Kushner
b39aca9776
chore(bump): v0.3.2 2019-07-23 11:56:27 -04:00
Matan Kushner
0fe00ecd82
fix: prompt now updates on bash and zsh (#109)
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-23 11:49:14 -04:00
Matan Kushner
0f1b71189a
chore: v0.3.1 2019-07-20 13:50:29 -04:00
Matan Kushner
7d5761a69e
chore: v3.0.1 2019-07-20 13:48:48 -04:00
allcontributors[bot]
f803d70021 docs: add chipbuster as a contributor (#107) 2019-07-20 13:47:07 -04:00
Kevin Song
aceda0052f fix: handle path to shell in starship init (#106)
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-20 13:45:41 -04:00
Matan Kushner
0f76d46d95
chore: Exclude docs from published crate 2019-07-19 22:13:11 -04:00
Matan Kushner
c8975dfbb6
v0.3.0 2019-07-19 22:08:43 -04:00
Matan Kushner
283f5539d7
docs: Add links to website and missing detail (#105) 2019-07-19 21:39:35 -04:00
Matan Kushner
f7eedaf775 refactor: Improve logging where lacking 2019-07-19 18:45:38 -04:00
Matan Kushner
feb6d8aec7 refactor: Better document context contents 2019-07-19 18:45:38 -04:00