summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2021-04-23refactor(gcloud): lazily read active gcloud config (#2592)Dario Vladović
* refactor(gcloud): lazily read active config once * refactor(gcloud): wrap gcloud config with `GcloudContext`
2021-04-22feat(config): Add support for `inverted` token in style strings (#2589)Florent
* Add support for `reverse` keyword in style strings * Duplicate test case and keep original * Rename keyword to `inverted` * Add explanatory sentence in readme
2021-04-22fix(nodejs): Check for `.nvmrc` (#2626)Kid
* feat(nodejs): Check for `.nvmrc` * Fix test
2021-04-20feat(aws): Add support for profile from awsume (#2609)Andrew McClenaghan
2021-04-20feat(red): create module (#2599)Milo
* create module * fmt * fix clippy * fmt even though i already did it * add all extensions * tests for .reds * change from circle to triangle * remove hi.red * fix test name * update variables * fix comment * Update docs/config/README.md Co-authored-by: Dario Vladović <d.vladimyr@gmail.com> * Update docs/config/README.md Co-authored-by: Dario Vladović <d.vladimyr@gmail.com> * apply patchs Co-authored-by: Dario Vladović <d.vladimyr@gmail.com>
2021-04-20fix(jobs): Handle zero jobs with zero thresholds (#2613)Anthony Huang
* Handle zero jobs with negative thresholds * Allow for zero threshold only * Log when threshold is less than zero * Address comments * Add docs
2021-04-17feat(battery): Add a symbol option to `battery.display` (#2475)t-mangoe
* feat: Add a symbol option to `battery.display` * feat: Add a symbol option to `battery.display` * use `impl defaulat` instead of `RootModuleConfig` * edit the code according to clippy's linting * change variable type to `Option<'a str>` * update the documentation on the battery module * updated documentation and source code according to review comment * remove the unnecessary method and write the default value of BatteryDisplayConig to the document * add 'charging_symbol' option to battery.display
2021-04-15feat(deno): create module (#2565)Milo
* Add deno module * Update docs * Update src/utils.rs Co-authored-by: Dario Vladović <d.vladimyr@gmail.com> * Update src/modules/deno.rs Co-authored-by: Dario Vladović <d.vladimyr@gmail.com> * Update src/modules/deno.rs Co-authored-by: Dario Vladović <d.vladimyr@gmail.com> * Update src/modules/deno.rs Co-authored-by: Dario Vladović <d.vladimyr@gmail.com> * Update src/modules/deno.rs Co-authored-by: Dario Vladović <d.vladimyr@gmail.com> * run rust fmt * Use deno -V * fmt * Fix deno module * do clippy * Update src/configs/deno.rs Co-authored-by: David Knaack <davidkna@users.noreply.github.com> * Update src/modules/deno.rs Co-authored-by: David Knaack <davidkna@users.noreply.github.com> * Update docs/config/README.md Co-authored-by: David Knaack <davidkna@users.noreply.github.com> * Fix test and docs * Remove unused code * fmt * update configs * Add more tests * Update docs/config/README.md Co-authored-by: Dario Vladović <d.vladimyr@gmail.com> Co-authored-by: Dario Vladović <d.vladimyr@gmail.com> Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2021-04-15fix(elixir): correctly parse dev and rc versions (#2573)Dario Vladović
2021-04-15refactor(scala): parse version w/o regex (#2574)Dario Vladović
2021-04-15refactor(lua): parse version w/o regex (#2575)Dario Vladović
2021-04-10refactor: propagate version formatting errors (#2566)Dario Vladović
* refactor: propagate version formatting errors * refactor: trim version formatting boilerplate * refactor(node): unwrap version formatting * docs: fix typo * docs: remove dots after `version_format` * feat: lazy version parsing * refactor(version-formatter): collect segments into string
2021-04-10test: allow running tests as root (#2571)David Knaack
2021-04-08feat: add version format configuration (#2499)Chris Rose
2021-04-06feat(config): print a suggestion for unknown fields (#2560)David Knaack
* feat(config): print a suggestion for unknown fields * Fix typo Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com> Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
2021-04-05refactor(init): cleanup init stub (#2548)Dario Vladović
* refactor(init): cleanup init stub * refactor(init): use iex PowerShell alias * fix(init): prevent bash scope pollution * refactor(init): update PowerShell snippet
2021-04-05feat(python): Remove parentheses from pyvenv.cfg prompt parameter (#2551)Charles Swartz
* Remove parentheses from pyvenv.cfg prompt * Apply suggestions from initial code review Co-authored-by: Dario Vladović <d.vladimyr@gmail.com> Co-authored-by: Dario Vladović <d.vladimyr@gmail.com>
2021-04-05fix(configure): fix print-config issues (#2556)David Knaack
2021-04-03style(battery): add space between icon and text for better visual (#2547)Dario Vladović
* style(battery): add space between icon and text for better visual * docs(battery): update docs Co-authored-by: LitoMore <litomore@gmail.com>
2021-04-02feat(ocaml): add `switch_indicator` and `switch_name` variable (#2503)Dario Vladović
* feat(ocaml): add switch variable * feat(ocaml): configurable opam switch display * docs(ocaml): document opam switch display options Add `global_switch_indicator` and `local_switch_indicator` config options. * style(opam): add `OpamSwitch` type alias * fix(opam): gracefully handle empty opam switch Co-authored-by: cdaringe <cdaringe@gmail.com>
2021-04-02style(directory): Add comments for test settings (#2538)Thomas O'Donnell
Have added some comments to explain the settings we are using in some tests.
2021-04-01fix(git_branch): Make Git branch module support bare repositories (#2522)Kim Christensen
Co-authored-by: Kim Christensen <KMCH@simcorp.com>
2021-03-31feat(config): warn about unknown config key names (#2527)David Knaack
2021-03-31test(directory): fix on windows without admin (#2497)David Knaack
2021-03-31feat(config): allow printing default and computed config (#2521)David Knaack
* feat: allow printing default and computed config * fix custom modules * actually fix custom modules
2021-03-28feat(vcsh): Add new module for VCSH (#2513)Caleb Maclennan
* feat(vcsh): Implement new VCSH module * test(vcsh): Add unit tests for VCSH module * docs(vcsh): Document VCSH module
2021-03-27refactor(username): reformat code to match docs (#2517)Dario Vladović
2021-03-27refactor(singularity): use `?` operator (#2518)Dario Vladović
2021-03-27fix(context): remove unwrap when pwd is unavailable (#2520)David Knaack
2021-03-26refactor: use `unwrap_or_default` (#2516)Dario Vladović
2021-03-25style(init): Cleanup the unknown shell message (#2444)Thomas O'Donnell
* style(init): Cleanup the unknown shell message Have make a small change to the message that is printed when an unknow shell is used. This correct the placement of the trailing `"` so that the two training new lines are correctly printed and updates the list of supported shells. * refactor(init): consolidate unknown shell errors Have consolidated the two unknown shell errors * refactor(init): Quote the shell name in the output Quote the shell name in the script and combined the shell_name and shell_basename to simplify the code a little.
2021-03-25chore(clippy): fix new lints (#2507)David Knaack
2021-03-24fix: Add a missing ' ' to the end of the python prompt (#2248)Chris Rose
Co-authored-by: Chris Rose <offline@offby1.net>
2021-03-23fix(shell): Support conditional format strings for `$indicator` (#2489)Andy Freeland
Previously attempting to use conditional format strings with `$indicator` would never display an indicator, e.g.: ```toml [shell] fish_indicator = "" bash_indicator = "B " format = "($indicator )" disabled = false ``` This would always display an empty string. Fixes #2474.
2021-03-23perf(git_status): replace git2 in git status module with git cli (#2465)Zachary Dodge
2021-03-18refactor(dotnet): ".NET" instead of "•NET" (#2471)Eyal Cherevatzki
* refactor(dotnet): ".NET" instead of "•NET" "•NET" looks quite weird, especially since the official writing is ".NET". * revert(docs): translated docs Co-authored-by: Eyal Cherevatzki <eyal@hyperguest.com>
2021-03-15refactor: replace RootModuleConfig with Default (#2458)David Knaack
2021-03-15fix(zsh): Set PROMPT just once (#2428)Eric Nielsen
No need to forcefully set the `PROMPT` variable every time the prompt is to be shown. Just set it once, leaving the command to be evaluated every time the prompt is to be shown, by enabling the `promptsubst` option. Setting it once is also friendlier to users that want to experiment with another prompt theme by temporarily setting `PROMPT` to something else. This would currently not be possible, because the variable is always reset before every prompt draw (precmd) and keymap change (zle-keymap-select). Some other updates to take better advantage of the zsh script dialect: * `$` is not required to read variables inside `(( ))` arithmetic expressions. * The zsh dialect to check if a variable is set is `${+var}`. Better than `${var+1}`, which substitutes 1 if var is set, which is intended for more general substitutions, not just to check if var is set. * The number of jobs can be read using the `%j` escape sequence, which is expanded when the `promptpercent` option is set. Also simplified a couple of code lines by avoiding a temporary `STARSHIP_START_TIME` variable, since we already have `STARSHIP_CAPTURED_TIME`.
2021-03-15fix(cmake): Change cmake symbol to unicode triangle (#2456)Melroy van den Berg
2021-03-14feat(scala): Add scala module (#2409)Beni Ben zikry
* Add support for scala ( w/o sbt ) * Add scala description * Change scala color to bold red * update scala extensions in README * failed lint * cr changes ( regex, simplify parsing, imports ) * Scala readme punctuation Co-authored-by: David Knaack <davidkna@users.noreply.github.com> Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2021-03-14fix(python): Handle PyPy python version correctly (#2374)Asger Hautop Drewsen
* fix(python): Handle PyPy python version correctly * refactor: rework Python version retrieval and formatting Align Python version retrieval and formatting with established Starship conventions.
2021-03-13fix(java): use consistent separators for java path (#2455)Thomas O'Donnell
* fix(java): use consistent separators for java path This switches us from just appending `/bin/java` to `$JAVA_HOME` to treating `$JAVA_HOME` as a path. This should fix any issues on Windows where $JAVA_HOME might use `\` rather than `/`. * test(java): add test for JAVA_HOME * refactor: remove duplicate defaults * perf: sligntly better java path perf * Update src/modules/java.rs Co-authored-by: Dario Vladović <d.vladimyr@gmail.com> * Update src/modules/java.rs Co-authored-by: Dario Vladović <d.vladimyr@gmail.com> * Update src/modules/java.rs Co-authored-by: Dario Vladović <d.vladimyr@gmail.com> Co-authored-by: Dario Vladović <d.vladimyr@gmail.com>
2021-03-13feat(aws): add support for getting profile from awsu (#2451)nils måsén
2021-03-12fix(package): fix meson version extraction if 'meson_version' is present (#2397)Bao, Huang-Huang
2021-03-06style(aws): Add spacing between profile and region (#2417)Eric Nielsen
and also after the symbol when using the Nerd font glyph.
2021-03-05fix(bash): escape interpretable characters (#2404)David Knaack
* fix(bash): escape interpretable characters * also escape backticks
2021-02-27feat: add support for tcsh (#2288)Vivek Malneedi
* feat: add support for tcsh * add tcsh to install.sh install message * list tcsh in bug_report.rs and main.rs * quote starship path Co-authored-by: David Knaack <davidkna@users.noreply.github.com> * fix job count * add tcsh support to shell module * fix STARSHIP_START_TIME undefined error * preserve existing user precmd and postcmd, remove jobs support * remove unnecessary parentheses * minor script improvement * removes parens from install script message * Update docs/config/README.md Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com> Co-authored-by: David Knaack <davidkna@users.noreply.github.com> Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
2021-02-22fix(nodejs): Change symbol to nerd-font (#1649)whi-tw
The unicode hexagon symbol does not actually fit into a single column with a fixed-width font.  does. As starship requires a nerd font as a prerequisite, it's safe to assume that this symbol is available. Symbol link: https://www.nerdfonts.com/cheat-sheet?set=nf-mdi-nodejs In the documentation, I've left the '⬢' symbols in '#### Text Group' as they are, as they will continue displaying correctly in a browser without a nerd font available. I feel like readability is more important than consistency with the new nodejs symbol, especially as this documentation section does not actually refer to nodejs, rather it's just a symbol. As `⬢` has been replaced, use `⌘` instead in documentation to avoid any possible confusion
2021-02-21feat(helm): Configure when the module is shown (#2352)Thomas O'Donnell
This makes it possible to configure when the helm module is shown based on the contents of a directory.
2021-02-21feat(java): Configure when the module is shown (#2353)Thomas O'Donnell
This makes it possible to configure when the java module is shown based on the contents of a directory.