Barnaby Keene
b685bb2954
feat: add docker context module ( #996 )
...
* feat: add docker context module
Adds a simple module that checks for a Docker config file and if present, reads the `currentContext` value out and displays on the prompt with a whale.
* feat: add `only_with_compose_yml` option to docker_context
When enabled, will only show the docker context name if there's a docker-compose.yml file in the current directory.
* Update src/modules/docker_context.rs
Co-Authored-By: Thomas O'Donnell <andytom@users.noreply.github.com>
* Update src/modules/docker_context.rs
Co-Authored-By: Thomas O'Donnell <andytom@users.noreply.github.com>
* rename `only_with_compose_yml` configuration key to a more generic `only_with_files`
* Update src/modules/docker_context.rs
Co-Authored-By: Thomas O'Donnell <andytom@users.noreply.github.com>
* re-order configuration table
* Update docs/config/README.md
Co-Authored-By: Thomas O'Donnell <andytom@users.noreply.github.com>
* Update src/configs/docker_context.rs
Co-Authored-By: Thomas O'Donnell <andytom@users.noreply.github.com>
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
2020-04-05 21:42:55 +02:00
Shu Kutsuzawa
bd016b6ce2
feat: Enable to display language version when .<lang>-version
file exists. ( #1028 )
...
* adjust https://github.com/sonnym/elmenv
* adjust https://github.com/syndbg/goenv
* adjust https://github.com/jenv/jenv
* adjust https://github.com/nodenv/nodenv
* adjust https://github.com/phpenv/phpenv
* adjust https://github.com/rbenv/rbenv
* add description
* golang.rs is executed rustfmt
* add testcases
2020-04-03 21:02:28 +02:00
sk1985
e38be5073f
feat(kubernetes): context aliases ( #1015 )
...
* Allow kubernetes module to use aliases for contexts
* documentation for kubernetes context aliasing
* Apply suggestions from code review: consistent ordering of options in documentation
Co-Authored-By: Thomas O'Donnell <andytom@users.noreply.github.com>
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
2020-04-03 20:18:44 +02:00
Shu Kutsuzawa
dba3467dee
feat: Add a julia module ( #1030 )
...
* add a julia module
* Update docs/config/README.md
Co-Authored-By: Thomas O'Donnell <andytom@users.noreply.github.com>
* fix based on https://github.com/starship/starship/pull/1030#pullrequestreview-381767326
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
2020-04-03 20:16:34 +02:00
Shu Kutsuzawa
edcec7eed8
feat(package): Add project version for julia ( #1036 )
...
* add project version (for julia) to package module
* update docs
2020-04-03 20:16:22 +02:00
oliver
4e0382d6bb
docs(memory_usage): Update example to have disabled = false
( #1027 )
2020-03-23 12:53:04 -04:00
Mick Hohmann
be72797fd2
docs: alphabetize modules in config docs ( #981 )
2020-03-15 21:07:08 -04:00
Kevin Song
f2fdaa2d31
docs(elixir): Minor typo fix for config docs ( #971 )
2020-03-02 19:06:38 -05:00
KokaKiwi
243e97cfe6
feat: add Elixir module ( #437 )
2020-03-01 22:29:27 -05:00
Christopher Goh
1eabd52725
docs(time): add missing quotations in options and examples ( #967 )
2020-02-28 13:01:47 -05:00
Tadej Novak
7e66791cb2
feat: add singularity module ( #932 )
2020-02-26 11:18:19 -05:00
Kevin Lane
ce540fff7a
feat: display Gradle project version ( #662 )
...
This PR adds package version support for Gradle projects. The version number is extracted from the `build.gradle` file in the current directory, similar to existing support for other packages.
2020-02-21 14:12:21 -05:00
Kevin Song
c6d8031f36
docs: Update docs w/ details on fish-style truncation ( #948 )
2020-02-20 18:08:20 -06:00
Heechul Ryu
b529dcf9a0
docs: Fix kubernetes style doc `dimmed' ( #944 )
...
Fix an incorrect key in the Kubernetes doc (key was incorrectly labeled as `dim` where it should be `dimmed`)
2020-02-19 13:55:58 -06:00
nesmyslny
0312c7b91e
feat(git_commit): Show the hash of commits when detached HEAD ( #738 )
2020-02-12 14:56:29 -05:00
Matan Kushner
91008ba5f2
docs: Use Algolia DocSearch for docs
2020-02-07 12:36:39 -05:00
Matan Kushner
670c7a3591
docs: Update example snippets
...
Former-commit-id: e0526c871d95ea56f216d668866580268407f350
2020-02-05 23:00:25 -05:00
Andrew Prokhorenkov
273a937505
feat: Add an Elm module ( #879 )
...
Former-commit-id: d42137309da457a438b554601f0734db963a193e
2020-02-05 22:57:04 -05:00
Matan Kushner
6a762e83d1
docs: small doc touchups
2020-02-04 18:28:11 -05:00
Youssef Habri
f665df226c
feat: Add Crystal version module ( #170 )
2020-02-04 18:27:06 -05:00
Andrew Prokhorenkov
9229a48bc9
fix(haskell): Add the Haskell module to the default prompt order ( #893 )
2020-02-01 17:16:10 -05:00
Andrew Prokhorenkov
6f2c9fb397
feat: add Haskell Stack support ( #546 )
...
Add a Haskell Stack module when a stack.yaml file is detected
2020-01-25 00:48:39 -06:00
Sam Rose
f4c095de92
fix(java): Add detection for *.gradle files ( #871 )
...
Currently the Java module detection looks for build.gradle specifically, but it's possible to rename build.gradle to *.gradle. This change adds Gradle files to the list of detected file extensions.
2020-01-24 10:22:30 -05:00
Justas Kazakauskas
45e6b3e052
docs: Document the STARSHIP_CONFIG env variable ( #807 )
2020-01-04 14:20:07 -05:00
marblenix
b82ff321fa
feat(git_status): Add a stash count segment ( #598 )
2019-12-28 22:20:36 -05:00
Matan Kushner
e53ced8221
docs: A few small improvements
...
- Correctly alphebetize modules
- Fix table formatting
- Add missing quotes around strings
2019-12-23 18:10:25 -05:00
Marco Ieni
c4ed88952c
docs(config): Disabled at the end of the options
...
In the `time` module, bring `disabled` option at the end of the table for coherence with all the other modules
2019-12-23 10:11:23 -05:00
Mike Sampson
256a2be949
feat: Implement AWS region aliases ( #646 )
2019-12-20 12:30:47 -05:00
Luca Rinaldi
6a2b0a67b0
feat: cmd_duration module optionally reports milliseconds ( #696 )
2019-12-19 17:38:06 -05:00
Mario Arias
aab35674d2
feat: Adds build.gradle.kts detection to the Java module ( #731 )
2019-12-19 10:17:50 -05:00
nesmyslny
40d4daba42
docs: Correct summary of git_commit
module ( #737 )
2019-12-16 10:45:48 -05:00
Morten Scheel
e38a257656
feat: add composer.json version to Package module ( #716 )
2019-12-11 21:05:39 -05:00
AppleTheGolden
ea04f9bfc1
fix: Add php to the default prompt order ( #708 )
2019-12-10 11:52:55 -05:00
AppleTheGolden
3c835ba34b
fix: Truncate long paths in conda environment names ( #694 )
...
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
Matan Kushner
60a1319524
docs: Reorder terraform option rows for consistency
2019-12-08 20:43:36 -05:00
wdullaer
44b37a7bac
feat: Implement terraform module with workspace and version ( #644 )
2019-12-08 20:42:51 -05:00
Matan Kushner
5a3c9a756d
docs: Add missing quotes in config docs
2019-12-06 18:41:28 -05:00
Dan Wendorf
dee25c7b35
feat: Add prefix config to directory module ( #642 )
2019-12-06 14:19:11 -05:00
Matan Kushner
9f574eaabd
docs: Improve doc consistency
2019-12-06 12:00:23 -05:00
Qingping Hou
c5a206e3cf
feat: Add git_commit module ( #673 )
2019-12-06 11:57:42 -05:00
Stephen Ball
46904e5045
feat: Add PHP version module ( #244 )
2019-12-05 13:04:27 -05:00
Luca Greco
337f213753
feat: Add the hg_branch module ( #569 )
2019-12-02 17:37:18 -05:00
Harrison
4ba1383373
docs: Update README to create ~/.config ( #663 )
2019-11-28 14:11:58 -05:00
Matias Kotlik
135dddbb4f
feat: Add separator config to the memory module ( #603 )
2019-11-13 10:57:46 +09:00
Thomas O'Donnell
42f6868e3f
feat: Enable the python module in virtual envs ( #584 )
...
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 ( #556 )
2019-11-02 20:08:54 +09:00
Zhenhui Xie
fed1341e22
feat: Add an option to limit the duration of starship directory scanning ( #589 )
2019-10-28 22:41:16 +09:00
Brian Low
2710d02709
feat: Show git_status counts ( #434 )
...
The git_status module can show the count of files next to their respective symbols.
2019-10-26 15:20:20 +09:00
Matan Kushner
9f22bce944
docs: Update use_12hr config option name
2019-10-25 10:05:21 +09:00
Yoshi
edf5176c37
docs: Fix Memory Usage
option key ( #586 )
2019-10-25 09:58:10 +09:00
Matias Kotlik
86bb923303
refactor: Refactor memory_usage module to use module config. ( #515 )
...
Also addresses a number of bugs:
- the percent sign not displaying correctly on some terminal emulators, including kitty
- changing the symbol in the configuration file didn't do anything
- swap being shown even if the system didn't have any
2019-10-21 00:26:04 +09:00
Matias Kotlik
d2eef11148
refactor: Refactor git_branch module to use new module config ( #535 )
2019-10-15 20:48:53 +09:00
Zhenhui Xie
be2d5cf1cd
refactor: Rewrite cmd_duration, directory and env_var module to use module config ( #460 )
...
This PR is a batched rewrite of the following modules:
- cmd_duration
- directory
- env_var
2019-10-15 20:34:48 +09:00
Zach Mertes
5303fd7684
feat: Add configuration for hostname truncation ( #485 )
2019-10-15 01:22:25 +09:00
Thomas Lee
b3275d8ddf
feat: Show AWS region in aws
module ( #482 )
2019-10-15 00:05:03 +09:00
Thomas O'Donnell
a18408e30c
fix: Fix the spacing around the AWS default symbol ( #529 )
...
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
Zhenhui Xie
57b38f17bb
refactor: Rewrite hostname, jobs and line_break module to use mo… ( #462 )
2019-10-10 17:21:52 +09:00
Matan Kushner
f51f3edf76
docs: Fix lingering merge conflict in config docs
2019-10-10 13:45:59 +09:00
Keith Wade
9d48706360
feat: Implement timezone offset config option for the time module ( #463 )
...
This allows users to configure the time module to display time with a timezone offset other than just their local timezone.
2019-10-10 13:42:57 +09:00
Maarten Mulders
8058b51273
feat: Show Java module when build.sbt is present ( #505 )
...
* feat: Show Java icon and info when build.sbt detected
* docs: Mention build.sbt detection
2019-10-07 19:18:01 +09:00
AppleTheGolden
7657af0680
feat: Add conda module ( #469 )
2019-10-05 13:25:25 -05:00
Thomas Lee
27e8c8f3eb
refactor: Rewrite time
module to use module config ( #483 )
...
- Config option renamed: `12hr` → `use_12hr`
2019-10-06 00:07:00 +09:00
Thomas O'Donnell
5a8777ff45
fix: Disable Kubernetes module by default ( #488 )
...
Given the global nature of the Kubernetes module, the module has been disabled by default. The opportunity has also been taken to refactor the Kubernetes module to use the new config module.
2019-10-05 18:31:23 +09:00
Nick Young
6621e4c859
feat: Add dotnet module ( #416 )
...
Adds a .NET module, which preferentially parses local/git files to get
the .NET version.
2019-10-02 01:56:48 -05:00
Thomas O'Donnell
9fc5a43355
feat: Add Kubernetes Module ( #404 )
...
Adds a Kubernetes module, which works by parsing kubeconfig.
2019-10-01 13:58:24 -05:00
Matan Kushner
b744d7afb2
docs: Reword command duration option
2019-10-01 00:01:45 +09:00
Matan Kushner
9e9eb6a8ef
fix: Disable memory_usage by default ( #451 )
2019-09-30 16:04:49 +09:00
Tom Hotston
7588137b09
feat: Added ability for setting command duration prefix ( #414 )
2019-09-30 14:26:32 +09:00
Andrew Houts
0eafb2bde7
feat: add memory usage module ( #403 )
...
Adds a module to display system memory and swap usage.
2019-09-29 00:55:48 -05:00
Matan Kushner
c49e54b16b
docs: Add extra newlines around custom containers
2019-09-28 20:20:18 +09:00
Matan Kushner
b29891adf9
docs: Small fixes to the config docs
2019-09-28 01:17:53 +09:00
yuri
d3fc66c0c5
feat: Add Environment Variable module ( #409 )
2019-09-26 17:30:58 +09:00
Thomas O'Donnell
b050c59708
feat: Add AWS module ( #419 )
...
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 ( #380 ) ( #425 )
...
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 ( #380 )
2019-09-24 14:03:10 -05:00
Gimbar
702ad274cf
feat: Add option to always show the username module ( #408 )
2019-09-22 15:32:11 -05:00
谢祯晖
14fe246138
fix: Add display for unknown battery state ( #316 )
2019-09-20 12:52:54 -04:00
Kevin Song
c2875d99b6
feat: add support for logical paths in directory ( #366 )
...
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 ( #314 )
...
Implements a Java module which shows basic Java information when inside a Java project.
2019-09-19 18:02:53 -05:00
Iván
74e6170f9f
docs: Fix typo (confguring ➜ configuring) ( #385 )
2019-09-17 12:41:35 -04:00
Kutsuzawa Ryo
7a98ec1d8e
feat: Add configuration for the git_status
prefix and suffix ( #367 )
2019-09-15 16:44:53 -04:00
Nikodem Rabuliński
8014e9276e
docs: Fix default order in docs ( #376 )
2019-09-15 14:57:30 -04:00
Thomas O'Donnell
653def05f0
Enable the python module for tox files ( #369 )
...
Enable the python module if the current directory contains a `tox.ini`
file.
2019-09-15 12:21:40 -04:00
Matan Kushner
8f03c14582
docs: Reword the default prompt_order docs
2019-09-13 10:24:07 -04:00
Rob Warner
373493be85
feat: Add support for italic styles ( #354 ) ( #358 )
2019-09-12 16:10:42 -05:00
谢祯晖
a6c64e8457
feat: Implement threshold based styling for battery module ( #318 )
2019-09-12 14:06:59 -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
Weihang Lo
59d066c01f
docs: reorder misplaced Ruby option example ( #317 )
2019-09-08 09:57:52 -05: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
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
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
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
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
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
Quinn Strahl
3dd035056d
Support vicmd_symbol in fish-shell ( #254 )
2019-08-31 00:59:18 -07:00
Matan Kushner
c121dd4d44
docs: Add undocumented config options ( #262 )
2019-08-29 13:09:36 -04:00
Harry Mills
9918dd1aac
docs: Correct a copy/paste error in the docs ( #259 )
2019-08-29 12:41:09 -04:00
Neil Kistner
e034253a5e
feat: Add ability to use an alternate directory truncation style ( #239 )
...
* Add ability to use an alternate directory truncation style
2019-08-26 21:52:45 -04:00
Bruno Bigras
feb737190e
Add nix-shell support ( #173 )
2019-08-25 11:41:20 -04:00
Thomas O'Donnell
1478f8c2e9
Add support for detecting Python from Pipenv files ( #221 )
...
Added the ability to enable the Python module based on the existence of the a `Pipfile`.
2019-08-21 15:54:22 -07:00