Age | Commit message (Collapse) | Author |
|
* perf(kotlin): evaluate version lazily
* fix(kotlin): update format string; update tests
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
|
|
* perf(lua): evaluate version lazily
* fix(lua): update format string
* test(lua): update tests
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
|
|
* perf(utils): Add timeout to `utils::exec_cmd`
This adds a timeout to any command executed using the `utils::exec_cmd`.
The initial time limit is hard coded to 500ms but if required we can
make this configurable. Have also switched the tests to be a bit more
granular on which systems they are ignored.
* Terminate the processes if they timeout
|
|
* fix(nodejs): update format string
* test(nodejs): adjust tests to new format strings
* fix(nodejs): use once_cell's Lazy to implement hassleless lazy execution
* chore(nodejs): run rustfmt
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
|
|
|
|
|
|
* perf(dart): evaluate version lazily
* fix(dart): update format string
* fix: use suggested format string
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
|
|
* perf(java): evaluate version lazily
* fix(java): update format string
* fix: use suggested format string
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
|
|
* perf(elm): evaluate version lazily
* fix(elm): update format string
* fix: use suggested format string
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
|
|
* fix(dotnet): update dotnet format string
* fix(dotnet): update erlang format string
* fix(dotnet): update golang format string
* fix(dotnet): update helm format string
* fix(dotnet): update julia format string
* fix(dotnet): update nim format string
* fix(dotnet): update ruby format string
* fix(dotnet): update rust format string
* test: update formatted strings in unit tests
* Use suggested format strings
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
|
|
* perf(python): evaluate version lazily
* fix(python): update format string
* fix: use suggested format strings
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
|
|
* test: avoid setting $HOME
* add comment to get_home
* move everything to context.get_home
|
|
* perf(swift): evaluate version lazily
* fix(swift): update format string
Co-authored-by: Moritz Vetter <mv@3yourmind.com>
|
|
This fixes the additional space when the `version` variable can't be
populated.
|
|
* Applied changes suggested by clippy
In general:
1. Prefer std::path::Path over std::path::PathBuf
2. Simplified code with string formating...
Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
* Fixed test
Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
* Fixed formatting
Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
|
|
* test: enable logging in tests
* fix clippy
|
|
* perf(crystal): Lazily evaluate version command
This updates the module to lazily execute the `crystal --version`
command only when the `version` variable is used in the format string.
* perf(crystal): Update format string
Update format string to handle the `$version` variable not being set.
|
|
* fix(docker_context): enable if either yml or yaml is found
* Update docs
|
|
* Add comment about doublespace in nix-shell config
* docs: Add a semantic PR commit to appease the bot
|
|
* feat: Add support for cygwin/msys2/git-bash evironment
* Update src/init/mod.rs
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
|
|
Closes #894
Signed-off-by: Dentrax <furkan.turkal@hotmail.com>
|
|
This fixes a regression where the exit code of the most recently run
command was not correctly recorded in the bash init script.
|
|
|
|
* Fix bash-preexec detection and implementation
* Add detection for other arrays
|
|
* perf(init): Use random for session-key in fish
Same as #1755 but for fish users
* Update src/init/starship.fish
|
|
User is able to choose if their want to display the meaning of known status code in place of number.
|
|
Have fixed a few new suggestions from the latest version of clippy.
|
|
|
|
Add a module to show the currently installed Kotlin version if a
.kt/.kts file is found in the current folder
|
|
* fix(user): Fix username detection on Windows
This switches Windows to use the env var `USERNAME` rather than `USER`
for getting the username of the current user. I have also done some minor
refactoring to simplify some of the code and make the checks to see if
the user is root or another user a bit more robust.
* Update src/modules/username.rs
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
|
|
|
|
Have added support to the `utils::exec_cmd` to allow it to execute
commands that are not `.exe` on Windows. Have also added a timer to
measure how long a command took to execute.
|
|
* Add package version support for Meson meson.build.
* Update docs with Meson package version support.
|
|
I was surprised to see these (unprefixed) variables being set in my
shell. I think it's better to have them in the STARSHIP_ "namespace".
(Actually, STATUS got the new name STARSHIP_CMD_STATUS.)
|
|
* refactor: convert some vecs to static arrays and slices
* refactor(openstack): lazy yaml file reading, skip files without expected structure, and avoid panics for some edge cases
|
|
|
|
NotFound (#1993)
|
|
* feat(git_branch): Show remote name in addition to remote branch
* feat(git_branch): Fix table indentation in config README
* feat(git_branch): Use a different method to fetch remote information
* feat(git_branch): Fix the Clippy issue regarding string constant
|
|
* fix(git_commit): show last created tag on current commit
* style(git_commit): fixed linter & format alerts on PR checks
* test(git_commit): added 'test_latest_tag_shown_with_tag_enabled'
* test(git_commit): add a second between tags on same commit in 'test_latest_tag_shown_with_tag_enabled'
|
|
* feat: Try harder to guess if inside ssh
* Add test for SSH_CLIENT
* Update documentation on checking ssh connection
* Update docs/config/README.md
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
|
|
|
|
* check node engines version in package.json
* fix code, following review.
|
|
* Add comments for bash fix
* Rewrite commend
|
|
Changes the behaviour of a bg:none color string so that
it causes the background to have no color instead of
decoloring the entire string like it did before.
|
|
Fixes issue where having z.sh or autojump hooked in bash
would cause spurious background job indicators to appear.
|
|
Update the python module to try multiple python binaries when
determining the version. With the new logic if starship doesn't find
`python` on the `PATH`, which is the default for some Linux Distros, it
will fallback to `python3` and then `python2`.
|
|
* feat(rust): Support new rust-toolchain format
* Match file parsing with rustup and update link
* Use cargo to deserialize the rust-toolchain file
* Filter empty channel strings after extraction
* Use the option value instead of rewrapping
|
|
|
|
* Make git_state more robust
No need to come up with fake progress info.
See #1374, #1761.
* git_state: add support for .git indirection when rebasing
|
|
* perf(memory_usage): replace sysinfo with sys-info
* format
* simplify error handling
|