1
0
mirror of https://github.com/starship/starship.git synced 2025-02-19 11:51:51 +01:00
Commit Graph

96 Commits

Author SHA1 Message Date
Thomas O'Donnell
0879381bcd test: Ignore AWS tests that depend on the File System ()
Update AWS module tests to ignore the two tests that can fail if the
`~/.aws/config` file exists.
2020-01-08 18:22:42 -06:00
Matan Kushner
09fe0afc14
ci: Remove Docker test environment from CI () 2020-01-06 00:35:46 -05:00
David Hewson
178f177dac perf(hg_branch): Replace direct calls to hg ()
perf: don't use hg process to get branch / bookmark information, each call was taking 250ms and it was making on average 2 calls.
the branch and bookmark information is available in files in the root of the repo, use that instead.
now takes 300 micro seconds

fix: do not use .hgignore to decide if it is an hg repo. was providing false positives. 

fix: after changing branch the new branch was not show (the old branch was shown), the new branch is now correctly shown. 

fix: if no branch override was set it would say (no branch) however if you commited in that state you would commit to the branch default so say that instead
2020-01-03 17:51:45 -05:00
marblenix
b82ff321fa feat(git_status): Add a stash count segment () 2019-12-28 22:20:36 -05:00
Mike Sampson
256a2be949 feat: Implement AWS region aliases () 2019-12-20 12:30:47 -05:00
Luca Rinaldi
6a2b0a67b0 feat: cmd_duration module optionally reports milliseconds () 2019-12-19 17:38:06 -05:00
AppleTheGolden
3c835ba34b fix: Truncate long paths in conda environment names ()
Environment names created via conda create -p [path] tend to be too long for comfort, so this truncates them.
2019-12-09 12:59:02 -05:00
wdullaer
44b37a7bac feat: Implement terraform module with workspace and version () 2019-12-08 20:42:51 -05:00
Dan Wendorf
dee25c7b35 feat: Add prefix config to directory module () 2019-12-06 14:19:11 -05:00
Qingping Hou
c5a206e3cf feat: Add git_commit module () 2019-12-06 11:57:42 -05:00
Stephen Ball
46904e5045 feat: Add PHP version module () 2019-12-05 13:04:27 -05:00
Luca Greco
337f213753 feat: Add the hg_branch module () 2019-12-02 17:37:18 -05:00
Matan Kushner
4895276b1b
ci: Update Python to 3.7.5 () 2019-11-05 16:23:33 +09:00
Thomas O'Donnell
42f6868e3f feat: Enable the python module in virtual envs ()
This will enable the python module when a virtual environment has been
activated, this is detected via the `VIRTUAL_ENV` env var.
2019-11-02 20:10:21 +09:00
Cédric Da Fonseca
fa1267f12f feat: Add configuration to set how much AWS profile info is shown () 2019-11-02 20:08:54 +09:00
Brian Low
2710d02709 feat: Show git_status counts ()
The git_status module can show the count of files next to their respective symbols.
2019-10-26 15:20:20 +09:00
Zhenhui Xie
aa260899d4 fix: Use logical path instead of physical path when available ()
* Get pathbuf from logical path. (fixes )

(also fixes )

* 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-24 19:37:44 +09:00
Nguyễn Hồng Quân
27fad02837 fix: Separate Python version string and env name () 2019-10-17 18:55:48 +09:00
David Knaack
6ab70796db feat: Implement PowerShell support () 2019-10-16 00:10:16 +09:00
Matan Kushner
b5bb6d6994
refactor: Replace tempdir test utility with tempfile::tempdir () 2019-10-15 23:01:44 +09:00
Zach Mertes
5303fd7684 feat: Add configuration for hostname truncation () 2019-10-15 01:22:25 +09:00
Thomas Lee
b3275d8ddf feat: Show AWS region in aws module () 2019-10-15 00:05:03 +09:00
Thomas O'Donnell
a18408e30c fix: Fix the spacing around the AWS default symbol ()
This updates the default AWS default symbol to include a space after the
symbol to make it a little bit more readable. Have also updated the
README to include the AWS module.
2019-10-14 22:56:16 +09:00
AppleTheGolden
7657af0680 feat: Add conda module () 2019-10-05 13:25:25 -05:00
Matan Kushner
f2e20bbea2
revert: chore: Remove logic for the disabled option from modul… ()
This reverts commit 6c6e0ef1dd.
2019-10-05 19:03:48 +09:00
Zhenhui Xie
6c6e0ef1dd chore: Remove logic for the disabled option from modules () 2019-10-05 18:07:33 +09:00
Nick Young
6621e4c859 feat: Add dotnet module ()
Adds a .NET module, which preferentially parses local/git files to get
the .NET version.
2019-10-02 01:56:48 -05:00
Zhenhui Xie
dd0b1a1aa2 refactor: Refactoring config ()
This PR refactors config and puts configuration files for all modules in `configs/`.
2019-09-30 21:10:35 +09:00
Tom Hotston
7588137b09 feat: Added ability for setting command duration prefix () 2019-09-30 14:26:32 +09:00
Thomas O'Donnell
d335abca3d ci: Remove unused java testsuite () 2019-09-30 10:38:53 +09:00
yuri
63a45d01f9 feat: Use tilde for home_directory when under version control () 2019-09-28 22:50:38 -05:00
Zhenhui Xie
a56991cbc4 style: Fix rustfmt formatting warnings in CI () 2019-09-27 12:18:24 +09:00
yuri
d3fc66c0c5 feat: Add Environment Variable module () 2019-09-26 17:30:58 +09:00
Thomas O'Donnell
b050c59708 feat: Add AWS module ()
Adds a module for displaying the current AWS profile based 
on the AWS_PROFILE envar.
2019-09-25 21:55:47 -05:00
Matan Kushner
caaf3bc6a9
revert: Revert the command duration in ms feature () ()
Due to incompatibilities with the macOS date utility, we are
temporarily reverting this feature.

Refs: #c5e971a
2019-09-25 17:13:58 +09:00
Tom Hotston
c5e971aef8 feat: Add ability for command duration in milliseconds () 2019-09-24 14:03:10 -05:00
Gimbar
702ad274cf feat: Add option to always show the username module () 2019-09-22 15:32:11 -05:00
Thomas O'Donnell
690300239b ci: Fix typo in Dockerfile () 2019-09-21 09:07:50 -05:00
Kevin Song
c2875d99b6 feat: add support for logical paths in directory ()
Adds the ability for starship to display the logical path instead of the physical path.
2019-09-20 12:28:09 -04:00
Kuba Clark
71f03ec3e9 feat: Add Java Module ()
Implements a Java module which shows basic Java information when inside a Java project.
2019-09-19 18:02:53 -05:00
Kutsuzawa Ryo
7a98ec1d8e feat: Add configuration for the git_status prefix and suffix () 2019-09-15 16:44:53 -04:00
Thomas O'Donnell
653def05f0 Enable the python module for tox files ()
Enable the python module if the current directory contains a `tox.ini`
file.
2019-09-15 12:21:40 -04:00
Nick Young
7e891f17c1 perf: Lazy load files from directory ()
Changes context to use `once_cell` to lazily evaluate directory listing on first use.
2019-09-14 09:23:53 -05:00
John Letey
f9a4514045 feat: Implement the prompt module for time ()
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
Neil Kistner
9f70ffb7a7 fix: Lazy load git repo and only run module if not disabled ()
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
Neil Kistner
86c4a4bdcf refactor: Cleanup unwraps in create_fixture_repo function () 2019-09-07 12:27:29 -05:00
Neil Kistner
6658b7f0aa fix: Fixture repo will now clone and set git config locally () 2019-09-07 11:25:01 -05:00
Nick Young
eb724279da feat: Adds Git State module for showing "REBASING 2/3", etc. ()
- 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
Neil Kistner
1c66869117 feat: Add config for ahead/behind count of tracked branch ()
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
e66d7bae1c
ci: Migrate CI from Azure Pipelines to GitHub Actions ()
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