Commit Graph

75 Commits

Author SHA1 Message Date
Stéphane Benoit ef55042f2e
feat(perl): Added perl version module ()
Adds a module for perl support.
2020-08-04 11:22:44 -05:00
Takahiro Tsuruda c5f2eedf07
feat: Add gcloud module ()
* feat(gcloud): Add document of gcloud module

Signed-off-by: dulltz <isrgnoe@gmail.com>

* feat(gcloud): Add gcloud module

Signed-off-by: dulltz <isrgnoe@gmail.com>

* feat(gcloud): Add test for gcloud module

Signed-off-by: dulltz <isrgnoe@gmail.com>

* Apply the comment

https://github.com/starship/starship/pull/1493\#discussion_r456965413
Signed-off-by: dulltz <isrgnoe@gmail.com>
2020-08-03 23:30:20 +02:00
Dario Vladović 84f049f836
feat(dart): add Dart module () 2020-07-29 11:38:23 -04:00
Dario Vladović feb4124cac
feat(swift): add Swift module () 2020-07-29 11:36:49 -04:00
Batuhan Apaydın 03d75eb419
feat(helm): Add Helm module ()
Signed-off-by: Furkan <furkan.turkal@hotmail.com>

Co-authored-by: Furkan <furkan.turkal@hotmail.com>
2020-07-17 09:51:25 +02:00
Tilmann Meyer bd68970fab
feat(cmake): Add CMake module ()
* feat: CMake module

* docs: Document symbol variable
2020-07-09 21:40:33 +02:00
Zhenhui Xie ec76fafff0
feat: refactor modules to use format strings () 2020-07-07 18:45:32 -04:00
Matan Kushner 428a78ebb5
fix!: remove haskell module ()
Given how slow the Haskell module is (), it is slowing down the entire prompt
from rendering when the module is active. This commit removes the module until we
can find a faster way to retreive the Haskell version.
2020-07-06 13:00:52 -04:00
Rekihyt fcd003785b
feat(nim): Add Nim module ()
* Nim module and tests

* Add nim to docs

* parse_nim_version refactor, add nim desc

* Add nim symbol to Nerd Font preset

* Yellow with v prefix as default version

* Nim version fmt fix

* Update docs/config/README.md

Co-authored-by: Dario Vladović <d.vladimyr@gmail.com>

* Update src/modules/nim.rs

Co-authored-by: Dario Vladović <d.vladimyr@gmail.com>

* Nim module and tests

* Add nim to docs

* Yellow with v prefix as default version

* Update docs/config/README.md

Co-authored-by: Dario Vladović <d.vladimyr@gmail.com>

* Update src/modules/nim.rs

Co-authored-by: Dario Vladović <d.vladimyr@gmail.com>

* Add nim to docs, proper version formatting.

* Remove v from symbol, add to fmt string

* cargo fmt

Co-authored-by: Dario Vladovic <d.vladimyr@gmail.com>
2020-06-09 19:14:47 +02:00
nobv 63799b97d1
feat(PureScript): Add Purescript module ()
* Added configs/purescript

* Added modules/purescript

* Added necessary codes

* Added tests

* Updated README

* Fixed color because black is hard to see

* Fixed of push mistake

* Fixed pointed out in PR
2020-05-22 18:26:58 +02:00
Dario Vladović c008f4041b
feat: add Zig module () 2020-05-21 18:49:49 +02:00
Hirochika Matsumoto 9e8f35d746
feat(ocaml): Add OCaml module ()
* Add OCaml module

* Update README.md accordingly

* Fix typo

* Add Reason support

Obtain OCaml version using `-vnum` flag.
Extend conditions to match projects using jbuild, esy
or merlin.

* Update README.md

Co-authored-by: Dario Vladovic <d.vladimyr@gmail.com>
2020-05-21 18:43:13 +02:00
Benedikt Reinartz 8c17f7b97c
feat(erlang): Add Erlang module () 2020-04-27 12:09:42 +02:00
Alexandru Macovei decd4e2a5d
fix(haskell): add description for haskell, used by the explain command () 2020-04-25 14:34:01 +02:00
Alexandru Macovei 2c30f4bd9e
fix(crystal): Add Crystal module to default prompt order () 2020-04-24 19:37:34 +02:00
Grégoire Geis 15dc486e72
Add support for custom modules. () 2020-04-11 18:37:24 +02:00
Barnaby Keene b685bb2954
feat: add docker context module ()
* 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 dba3467dee
feat: Add a julia module ()
* 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
KokaKiwi 243e97cfe6
feat: add Elixir module () 2020-03-01 22:29:27 -05:00
Tadej Novak 7e66791cb2
feat: add singularity module () 2020-02-26 11:18:19 -05:00
Andrew Prokhorenkov 273a937505 feat: Add an Elm module ()
Former-commit-id: d42137309da457a438b554601f0734db963a193e
2020-02-05 22:57:04 -05:00
Youssef Habri f665df226c
feat: Add Crystal version module () 2020-02-04 18:27:06 -05:00
Matan Kushner 3365beae09 test(nodejs): Port nodejs module tests from E2E to integraton ()
Replaces the existing nodejs module end-to-end tests with integration tests that don't require preinstalled environmental dependencies.

- Moved the tests to the same file as the module they test
- Created a render_module utility function for rendering modules within tests
- Removed Node.js installation during CI setup
- Add Shell to Context to allow for tests to not run shell-specific code
2020-01-26 16:37:18 -06:00
Andrew Prokhorenkov 6f2c9fb397 feat: add Haskell Stack support ()
Add a Haskell Stack module when a stack.yaml file is detected
2020-01-25 00:48:39 -06:00
Hendrik Rombach dab27f3334 fix: Correct module description text for git_commit () 2020-01-07 12:12:40 -05:00
Jon Grythe Stødle 8e5fa60fc8 feat: Add the `starship explain` command ()
This adds the explain argument to Starship, which explains what the printed modules in the prompt are.
2020-01-01 23:19:08 -05:00
wdullaer 44b37a7bac feat: Implement terraform module with workspace and version () 2019-12-08 20:42:51 -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
yuri b7762a3e91 fix: Show Java version from OpenJ9 Java runtimes ()
This PR tries to improve the version detection across multiple Java VM vendors. The module captures both STDOUT and STDERR outputs of the java -Xinternalversion call.

Eclipse OpenJ9, Azul Zulu, SapMachine, Amazon Corretto and GraalVM outputs are unit tested now.
2019-10-25 10:00:05 +09:00
Zhenhui Xie aadd8ecf2c refactor: Refactor modules to use module config () 2019-10-19 10:51:38 +09:00
Zhenhui Xie 044e10de1b chore: Import shared types from super ()
Changes imports statements to make imports more uniform.
2019-10-05 16:13:03 -05:00
AppleTheGolden 7657af0680 feat: Add conda module () 2019-10-05 13:25:25 -05:00
Matan Kushner 05210b9510
refactor: Go from Rust workspaces to a package with nested packages () 2019-10-04 22:30:46 +09: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
Andrew Houts 0eafb2bde7 feat: add memory usage module ()
Adds a module to display system memory and swap usage.
2019-09-29 00:55:48 -05: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
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
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
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
Andrew Houts 84688e4981 feat: add hostname module ()
Add a hostname module as requested by @chipbuster.
Displays the system hostname as provided by gethostname.
2019-09-04 13:03:31 -04:00
Bruno Bigras 0fa862a2e9 make the battery module optional for now ()
The 'battery' crate doesn't support Termux, so we are temporarily making the battery module optional.
2019-08-26 14:09:39 -04:00
Bruno Bigras feb737190e Add nix-shell support () 2019-08-25 11:41:20 -04:00
Saurav Sharma 075a76897c fix: Change panicking on unknown module to error print and support module listing flag () 2019-08-20 00:42:25 -04:00
André Zanellato b06249d61c feat: implement the ruby module () 2019-08-13 18:43:29 -04:00
Matan Kushner 7424e9674c
fix: Fix issues with nodejs and golang configuration ()
* fix: Give all modules a single name
* test: Add missing config tests for nodejs and golang
* test: Rename dir to directory
2019-08-13 12:30:59 -04:00
John Letey 82cf484ced feat: Implement the prompt module for jobs () 2019-08-12 13:42:33 -04:00
Kevin Song 3daf3ddf26 feat: implement timer module ()
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