Commit Graph

1459 Commits

Author SHA1 Message Date
谢祯晖 37b5168bfe fix: Fixups for #138 (#343)
- Fix unused imports in unit tests
- Add accidently remove module "battery"
2019-09-11 08:43:40 -04:00
Kevin Song 54793c7d5a refactor: Separate shell initialization into files (#338)
Shell inits are now in a separate directory in the source code, with each shell getting its own script. Also adds a little DRY + commenting in init/mod.rs.
2019-09-10 20:31:08 -04:00
Daniel Illi-Zuberbühler ee20d6b2ac fix: Prepend to PROMPT_COMMAND in Bash init (#336)
Bash init: do not overwrite PROMPT_COMMAND but prepend to it.
2019-09-10 15:12:29 -04:00
John Letey f9a4514045 feat: Implement the prompt module for time (#138)
Add a module which displays the current time in a format requested by
the user. Disabled by default.
2019-09-10 12:54:40 -05:00
dependabot-preview[bot] 7d02f718c8 chore(deps): Bump git2 from 0.10.0 to 0.10.1 (#334)
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/rust-lang/git2-rs/releases)
- [Commits](https://github.com/rust-lang/git2-rs/compare/git2-curl-0.10.0...git2-curl-0.10.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-10 11:38:26 -04:00
Neil Kistner 9f70ffb7a7 fix: Lazy load git repo and only run module if not disabled (#306)
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-09 19:14:38 -04:00
allcontributors[bot] dc8409333e docs: add Hofer-Julian as a contributor (#328)
* docs: update README.md

* docs: update .all-contributorsrc
2019-09-09 11:37:15 -05:00
Hofer-Julian b2dcdaae5f docs: Include Docker related information in CONTRIBUTING (#321) 2019-09-09 11:10:45 -05:00
Hofer-Julian c67734f46c fix: Turn off label confinement for integration_test script (#322)
Allows usage on OS using SELinux.
No influence on other OS is expected.
2019-09-08 16:46:12 -05:00
Weihang Lo 59d066c01f docs: reorder misplaced Ruby option example (#317) 2019-09-08 09:57:52 -05:00
Matan Kushner 29eedeb698
chore(bump): v0.16.0 2019-09-08 00:21:18 -04:00
Matan Kushner dcc105ea1b
ci: Add a build target for musl 2019-09-08 00:20:21 -04:00
Kevin Song 9721666d33
feat: Add the ability to configure per-module color styles (#285)
Add parsing logic, config support, docs, and integration with other modules 
for custom styling of each module.
2019-09-07 19:33:06 -05:00
allcontributors[bot] 3e5cac9852 docs: add nickwb as a contributor (#310) 2019-09-07 15:17:00 -04:00
Neil Kistner 86c4a4bdcf refactor: Cleanup unwraps in create_fixture_repo function (#311) 2019-09-07 12:27:29 -05:00
Neil Kistner 6658b7f0aa fix: Fixture repo will now clone and set git config locally (#307) 2019-09-07 11:25:01 -05:00
allcontributors[bot] 3435b9cdc2 docs: add g2p as a contributor (#309) 2019-09-07 11:13:10 -04:00
Gabriel de Perthuis 69ebab46a4 fix: Don't trigger an extension match on hidden files (#299)
Addresses #52, closes #280.
2019-09-07 11:05:25 -04:00
Matan Kushner 61abe6dd7a
chore(bump): v0.15.0 2019-09-05 23:05:20 -04:00
allcontributors[bot] 313def1d92 docs: add wyze as a contributor (#297)
* docs: update README.md

* docs: update .all-contributorsrc
2019-09-05 12:47:45 -04:00
allcontributors[bot] 80f0600b4f docs: add nickwb as a contributor (#296) 2019-09-05 12:47:09 -04:00
Nick Young eb724279da feat: Adds Git State module for showing "REBASING 2/3", etc. (#276)
- Adds the git_state module.
- Adds git_state to the default prompt order
- Updates the documentation to describe the git_state module
2019-09-05 12:45:04 -04:00
Thomas O'Donnell 4f17bae315 fix: Add missing module to list of modules (#294)
Have added the missing hostname module to the list of all modules.
2019-09-05 11:33:24 -04:00
Matan Kushner 2bdfcb1373
chore(bump): v0.14.1 2019-09-05 00:38:55 -04:00
Matan Kushner f8ca3fd007
ci: Fix rust cross installation 2019-09-05 00:36:27 -04:00
Matan Kushner 29325c6b50
chore(bump): v0.14.0 2019-09-05 00:15:29 -04:00
Neil Kistner 1c66869117 feat: Add config for ahead/behind count of tracked branch (#281)
Add a configuration option (show_sync_count) to the git_status module that will show/hide the counts ahead/behind of the tracked branch. Currently have this default to false, and would opt-in to show this information.
2019-09-05 00:09:51 -04:00
Matan Kushner c5e693b638
ci: Update Actions events to include `pull_request` 2019-09-04 20:56:06 -04:00
Matan Kushner 8d353f72c6
docs: Move starship badge to be above "License" 2019-09-04 19:23:55 -04:00
Matan Kushner 23cf3e5b12
docs: Add "Inspired By" to README.md (#291) 2019-09-04 19:22:28 -04:00
Matan Kushner e66d7bae1c
ci: Migrate CI from Azure Pipelines to GitHub Actions (#233)
Migrated CI from Azure Pipelines to GitHub Actions.
Until the release process is figured out in Actions, we'll stick to using Azure pipelines for releases.
2019-09-04 19:13:53 -04:00
allcontributors[bot] 68754208c1 docs: add ahouts as a contributor (#288) 2019-09-04 13:05:00 -04:00
Andrew Houts 84688e4981 feat: add hostname module (#286)
Add a hostname module as requested by @chipbuster.
Displays the system hostname as provided by gethostname.
2019-09-04 13:03:31 -04:00
Nick Young 5a0f269d85 fix: Be more restrictive with bash init fallback (#278)
This should improve compatibility with "Git Bash" with Git for Windows by
using psub+source init for all bash shells v4.1 and newer.
2019-09-04 09:23:31 -05:00
Thomas O'Donnell 789d504a44 Chore: Update PR template to add semver types (#287)
Have upded the PR template to add the semantic versioning types 
this should make it easier to pass the semantic-pull-requests checks.
2019-09-04 08:37:18 -05:00
Neil Kistner dfade6d629 refactor: Move `create_fixture_repo` into common in integration tests (#282) 2019-09-04 00:20:22 -04:00
Kevin Song 6db0e20585 Change ZSH init to use jobstates for num jobs (#252) 2019-09-03 23:44:44 -04:00
dependabot-preview[bot] f2f7815960 chore(deps): Bump ansi_term from 0.12.0 to 0.12.1 (#277)
Bumps [ansi_term](https://github.com/ogham/rust-ansi-term) from 0.12.0 to 0.12.1.
- [Release notes](https://github.com/ogham/rust-ansi-term/releases)
- [Commits](https://github.com/ogham/rust-ansi-term/compare/v0.12.0...v0.12.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-03 11:04:47 -04:00
allcontributors[bot] b4fccc46d7 docs: add oblitum as a contributor (#275) 2019-09-02 20:36:33 -04:00
allcontributors[bot] 5e2c8c5745 docs: add tivervac as a contributor (#274) 2019-09-02 20:27:50 -04:00
Matan Kushner 470648000f test: Add an integration test for disabling untracked files 2019-09-02 20:27:04 -04:00
Francisco Lopes 722a0652fd feat: Respect status.showUntrackedFiles 2019-09-02 20:27:04 -04:00
Titouan Vervack 59e8b1fc92 feat: added truncation_length/symbol to git_branch (#268)
Git branches can become very long (e.g. gitlab auto-generated branch
names), thus it would be nice to be able to truncate them to keep your
prompt lenght in line.

This patch adds two new options to the git_branch module:
* truncation_length: The amount of graphemes to of a gitbranch to
truncate to
* truncation_symbol: The symbol that should be used to indicate that a
branch name was trunctated

To be able to correctly work with UTF-8 graphemes, unicode-segmentation
was added as a dependency.
2019-09-02 15:56:59 -04:00
dependabot-preview[bot] f8929c2d7d chore(deps): Bump rayon from 1.1.0 to 1.2.0 (#269)
Bumps [rayon](https://github.com/rayon-rs/rayon) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/rayon-rs/rayon/releases)
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md)
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.1.0...v1.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-02 14:00:26 -04:00
Thomas O'Donnell de4a715333 docs: "staged" git config option in docs (#271)
Have corrected the documentation for the git module. The docs now use
the correct option `staged` rather than `added`.
2019-09-02 11:44:20 -04:00
allcontributors[bot] ba225a6581 docs: update bbigras as a contributor (#266) 2019-08-31 19:34:29 -04:00
allcontributors[bot] b802fb6ed8 docs: add qstrahl as a contributor (#265) 2019-08-31 19:29:38 -04:00
Quinn Strahl 3dd035056d Support vicmd_symbol in fish-shell (#254) 2019-08-31 00:59:18 -07:00
Nick Young 4eb7beca48 fix: Adds `nix_shell` to `module::ALL_MODULES` (#264)
So that it can be configured in the user's prompt
2019-08-30 09:39:21 -04:00
dependabot-preview[bot] 5f05d9e7af chore(deps): [Security] Bump spin from 0.5.0 to 0.5.2 (#256)
Bumps [spin](https://github.com/mvdnes/spin-rs) from 0.5.0 to 0.5.2. **This update includes a security fix.**
- [Release notes](https://github.com/mvdnes/spin-rs/releases)
- [Commits](https://github.com/mvdnes/spin-rs/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-29 13:53:00 -04:00