Alan Pope
6bc2efd8bf
build: Update snapcraft.yaml ( #2535 )
...
build-error is not a valid syntax in snapcraft.yaml
2021-04-01 18:54:50 +02:00
Kim Christensen
70b397a1c4
fix(git_branch): Make Git branch module support bare repositories ( #2522 )
...
Co-authored-by: Kim Christensen <KMCH@simcorp.com>
2021-04-01 18:51:55 +02:00
Dario Vladović
cba98bde10
chore: filter crate/s contents ( #2495 )
2021-04-01 18:45:13 +02:00
Julia
4af29d6355
docs(faq): make uninstall instructions shell-indepedent ( #2483 )
...
Closes #2484 .
2021-04-01 09:42:07 -05:00
masa
9cf15b7840
docs: Add update documentation ( #2418 )
...
Added documentation about upgrading starship itself via bash script.
2021-04-01 09:38:51 -05:00
David Knaack
ec61dd6af0
chore: remove audit.toml again ( #2536 )
2021-03-31 22:16:23 +02:00
David Knaack
51972801de
feat(config): warn about unknown config key names ( #2527 )
2021-03-31 20:13:23 +02:00
David Knaack
9d15eb135b
test(directory): fix on windows without admin ( #2497 )
2021-03-31 18:00:24 +02:00
David Knaack
d06ba072a8
feat(config): allow printing default and computed config ( #2521 )
...
* feat: allow printing default and computed config
* fix custom modules
* actually fix custom modules
2021-03-31 17:31:55 +02:00
dependabot-preview[bot]
2b15ca1a15
build(deps): bump shadow-rs from 0.5.24 to 0.5.25
...
Bumps [shadow-rs](https://github.com/baoyachi/shadow-rs ) from 0.5.24 to 0.5.25.
- [Release notes](https://github.com/baoyachi/shadow-rs/releases )
- [Commits](https://github.com/baoyachi/shadow-rs/compare/0.5.24...0.5.25 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-31 05:34:27 +00:00
dependabot-preview[bot]
74a49ad64c
build(deps): bump which from 4.0.2 to 4.1.0
...
Bumps [which](https://github.com/harryfei/which-rs ) from 4.0.2 to 4.1.0.
- [Release notes](https://github.com/harryfei/which-rs/releases )
- [Commits](https://github.com/harryfei/which-rs/compare/4.0.2...4.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-29 05:52:17 +00:00
dependabot-preview[bot]
b8b9c4264d
build(deps): bump rust-ini from 0.16.1 to 0.17.0
...
Bumps [rust-ini](https://github.com/zonyitoo/rust-ini ) from 0.16.1 to 0.17.0.
- [Release notes](https://github.com/zonyitoo/rust-ini/releases )
- [Commits](https://github.com/zonyitoo/rust-ini/compare/v0.16.1...v0.17.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-29 05:51:02 +00:00
David Knaack
9738b84b6f
fix: fix docker_context module name in nf preset ( #2526 )
2021-03-28 22:36:09 +02:00
Caleb Maclennan
f13e44c730
feat(vcsh): Add new module for VCSH ( #2513 )
...
* feat(vcsh): Implement new VCSH module
* test(vcsh): Add unit tests for VCSH module
* docs(vcsh): Document VCSH module
2021-03-28 17:48:15 +02:00
Dario Vladović
404b4f3d0c
refactor(username): reformat code to match docs ( #2517 )
2021-03-27 22:13:20 +01:00
Dario Vladović
1336944ab7
refactor(singularity): use ?
operator ( #2518 )
2021-03-27 18:53:54 +01:00
David Knaack
cf68f54611
fix(context): remove unwrap when pwd is unavailable ( #2520 )
2021-03-27 11:46:05 -04:00
Dario Vladović
c8a787475c
refactor: use unwrap_or_default
( #2516 )
2021-03-26 21:01:20 +01:00
Thomas O'Donnell
e0da57df3f
style(init): Cleanup the unknown shell message ( #2444 )
...
* 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-25 15:08:28 -05:00
David Knaack
ba40ad5ce6
chore(clippy): fix new lints ( #2507 )
2021-03-25 16:03:19 -04:00
Dario Vladović
28f7416a6e
docs: fix typo moudle
-> module
( #2504 )
...
Co-authored-by: Erik P. Hansen <eph@erikphansen.com>
2021-03-25 09:46:46 -04:00
Dario Vladović
4375517d9a
docs: format markdown ( #2493 )
...
Remove trailing whitespace and extra newlines.
2021-03-24 21:44:52 +01:00
Kid
dde61f5cf3
docs(preset): remove unnecessary Node.js and Haskell symbol config ( #2491 )
...
* docs(preset): remove unnecessary Node.js symbol config
* remove haskell symbol config
2021-03-24 18:20:27 +01:00
Dario Vladović
787702a179
docs: format configuration tables ( #2494 )
...
* docs: lowercase module names
* docs: format truncation length description
* docs: format git `HEAD` occurrences
* docs: format `SHLVL` environment var occurrences
* docs(node): fix incorrect manifest filename
2021-03-24 18:19:51 +01:00
Kid
36ad939f8f
docs(readme): add missing link to home-manager ( #2490 )
2021-03-24 11:02:14 -05:00
Chris Rose
aa7a8056bb
fix: Add a missing ' ' to the end of the python prompt ( #2248 )
...
Co-authored-by: Chris Rose <offline@offby1.net>
2021-03-24 10:41:08 -05:00
Andy Freeland
3513aae3ed
fix(shell): Support conditional format strings for $indicator
( #2489 )
...
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-23 17:20:29 -04:00
Zachary Dodge
0a091bd236
perf(git_status): replace git2 in git status module with git cli ( #2465 )
2021-03-23 12:45:27 -04:00
Matan Kushner
88c3844db3
chore(release): v0.51.0
2021-03-23 12:28:30 -04:00
dependabot-preview[bot]
cf37462a90
build(deps): bump serde from 1.0.124 to 1.0.125
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.124 to 1.0.125.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-23 06:43:07 +00:00
Eyal Cherevatzki
612cc7d27b
refactor(dotnet): ".NET" instead of "•NET" ( #2471 )
...
* 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-18 18:46:54 +01:00
Matan Kushner
3a4c9063e9
docs(i18n): New Crowdin updates ( #2362 )
...
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Portuguese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Portuguese)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Russian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Chinese Simplified)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Traditional)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Korean)
* New translations README.md (Korean)
* New translations README.md (Korean)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (French)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Polish)
* New translations README.md (Spanish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (French)
* New translations README.md (Arabic)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Russian)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (German)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Portuguese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Portuguese)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Russian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Italian)
* New translations README.md (Italian)
2021-03-15 18:18:42 +01:00
David Knaack
052b56fe10
refactor: replace RootModuleConfig with Default ( #2458 )
2021-03-15 11:40:52 +01:00
Eric Nielsen
6fd7d7b501
fix(zsh): Set PROMPT just once ( #2428 )
...
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-15 11:39:35 +01:00
Melroy van den Berg
c91b293c9d
fix(cmake): Change cmake symbol to unicode triangle ( #2456 )
2021-03-15 11:27:54 +01:00
dependabot-preview[bot]
49c09d493a
build(deps): bump regex from 1.4.4 to 1.4.5
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.4.4 to 1.4.5.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.4.4...1.4.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-15 05:42:02 +00:00
Beni Ben zikry
dd5c62791c
feat(scala): Add scala module ( #2409 )
...
* 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-14 20:37:00 +01:00
Linus Unnebäck
1651d11aad
build: add more architectures to Snap package ( #2382 )
...
* build: add more architectures to Snap package
* build: ignore build errors for ppc64el arch
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2021-03-14 19:29:04 +01:00
Asger Hautop Drewsen
d2946ddff7
fix(python): Handle PyPy python version correctly ( #2374 )
...
* 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-14 19:27:19 +01:00
Thomas O'Donnell
50bc5d9134
fix(java): use consistent separators for java path ( #2455 )
...
* 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-13 17:09:40 +01:00
nils måsén
e5cdd9c1b3
feat(aws): add support for getting profile from awsu ( #2451 )
2021-03-13 09:35:50 +01:00
Vivek Malneedi
69b9bf72c3
fix(tcsh): remove quotes and escape backticks ( #2429 )
...
* 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>
* fix(Tcsh): remove unecessary quotes
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
2021-03-12 16:27:04 +01:00
Colin Marquardt
30910cb4ac
fix(docs): "Command Duration" section link target ( #2416 )
2021-03-12 15:31:26 +01:00
Bao, Huang-Huang
8f46dff9dc
fix(package): fix meson version extraction if 'meson_version' is present ( #2397 )
2021-03-12 15:30:25 +01:00
dependabot-preview[bot]
a2e7f6947f
build(deps): bump regex from 1.4.3 to 1.4.4
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.4.3 to 1.4.4.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.4.3...1.4.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-12 05:31:32 +00:00
dependabot-preview[bot]
3bc3c00313
build(deps): bump open from 1.5.1 to 1.6.0
...
Bumps [open](https://github.com/Byron/open-rs ) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/Byron/open-rs/releases )
- [Changelog](https://github.com/Byron/open-rs/blob/master/changelog.md )
- [Commits](https://github.com/Byron/open-rs/compare/v1.5.1...v1.6.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-11 05:35:17 +00:00
dependabot-preview[bot]
206e53bf21
build(deps): bump byte-unit from 4.0.9 to 4.0.10
...
Bumps [byte-unit](https://github.com/magiclen/byte-unit ) from 4.0.9 to 4.0.10.
- [Release notes](https://github.com/magiclen/byte-unit/releases )
- [Commits](https://github.com/magiclen/byte-unit/compare/v4.0.9...v4.0.10 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-11 05:32:36 +00:00
David Knaack
49257649de
chore: run cargo update ( #2434 )
2021-03-08 14:27:38 -05:00
dependabot-preview[bot]
33abe26882
build(deps): bump serde from 1.0.123 to 1.0.124
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.123 to 1.0.124.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-08 05:54:38 +00:00
dependabot-preview[bot]
1ff773b913
build(deps): bump indexmap from 1.6.1 to 1.6.2
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.6.1 to 1.6.2.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Commits](https://github.com/bluss/indexmap/compare/1.6.1...1.6.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-08 05:40:30 +00:00