summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2021-01-21perf(kotlin): Lazy eval kotlin (#2186)Moritz Vetter
* perf(kotlin): evaluate version lazily * fix(kotlin): update format string; update tests Co-authored-by: Moritz Vetter <mv@3yourmind.com>
2021-01-21perf(lua): Lazy eval lua (#2185)Moritz Vetter
* perf(lua): evaluate version lazily * fix(lua): update format string * test(lua): update tests Co-authored-by: Moritz Vetter <mv@3yourmind.com>
2021-01-21perf(utils): Add timeout to `utils::exec_cmd` (#2171)Thomas O'Donnell
* 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
2021-01-20perf(nodejs): evaluate nodejs format string lazily (#2160)Moritz Vetter
* 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>
2021-01-20perf(custom): evaluate command lazily (#2173)David Knaack
2021-01-20perf(elixir): evaluate version lazily (#2172)David Knaack
2021-01-20perf(dart): Lazy eval dart (#2166)Moritz Vetter
* perf(dart): evaluate version lazily * fix(dart): update format string * fix: use suggested format string Co-authored-by: Moritz Vetter <mv@3yourmind.com>
2021-01-20perf(java): Lazy eval java (#2168)Moritz Vetter
* perf(java): evaluate version lazily * fix(java): update format string * fix: use suggested format string Co-authored-by: Moritz Vetter <mv@3yourmind.com>
2021-01-20perf(elm): Lazy eval elm (#2167)Moritz Vetter
* perf(elm): evaluate version lazily * fix(elm): update format string * fix: use suggested format string Co-authored-by: Moritz Vetter <mv@3yourmind.com>
2021-01-20fix: Adjust default format strings (#2165)Moritz Vetter
* 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>
2021-01-20perf(python): Lazy eval of python version command (#2158)Moritz Vetter
* 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>
2021-01-19test: avoid setting $HOME (#2155)David Knaack
* test: avoid setting $HOME * add comment to get_home * move everything to context.get_home
2021-01-18perf: evaluate swift version lazily (#2159)Moritz Vetter
* perf(swift): evaluate version lazily * fix(swift): update format string Co-authored-by: Moritz Vetter <mv@3yourmind.com>
2021-01-16fix(cmake): Fix spacing with missing variable (#2135)Thomas O'Donnell
This fixes the additional space when the `version` variable can't be populated.
2021-01-16fix: Applied clippy warnings (#2153)Hanif Ariffin
* 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>
2021-01-16test: enable logging in tests (#2151)David Knaack
* test: enable logging in tests * fix clippy
2021-01-13perf(crystal): Lazily evaluate version command (#2129)Thomas O'Donnell
* 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.
2021-01-11fix(docker_context): enable if either yml or yaml is found (#2053)Ben Iofel
* fix(docker_context): enable if either yml or yaml is found * Update docs
2021-01-09docs: Comment about spaces in nix-shell config (#2106)Kevin Song
* Add comment about doublespace in nix-shell config * docs: Add a semantic PR commit to appease the bot
2021-01-07feat: Add support for cygwin/msys2/git-bash evironment (#2020)Zoritle
* 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>
2021-01-07feat(command): add 'toggle' command (#1917)Furkan Türkal
Closes #894 Signed-off-by: Dentrax <furkan.turkal@hotmail.com>
2021-01-07fix(bash): Fix broken bash init script (#2100)Thomas O'Donnell
This fixes a regression where the exit code of the most recently run command was not correctly recorded in the bash init script.
2021-01-07fix(pwsh): disable builtin venv prompt (#2090)David Knaack
2021-01-07fix(bash): bash-preexec detection and implementation (#2091)Kevin Song
* Fix bash-preexec detection and implementation * Add detection for other arrays
2021-01-04perf(init): Use random for session-key in fish (#1904)Glandos
* perf(init): Use random for session-key in fish Same as #1755 but for fish users * Update src/init/starship.fish
2021-01-02feat(status): Convert known status code to their meaning (#1948)Hugues Morisset
User is able to choose if their want to display the meaning of known status code in place of number.
2021-01-01style: Latest clippy suggestions (#2048)Thomas O'Donnell
Have fixed a few new suggestions from the latest version of clippy.
2021-01-01feat(battery): make module behaviour more obvious (#1950)David Knaack
2020-12-26feat(kotlin): Add the kotlin module (#2026)Nicola Corti
Add a module to show the currently installed Kotlin version if a .kt/.kts file is found in the current folder
2020-12-26fix(user): Fix username detection on Windows (#2014)Thomas O'Donnell
* 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>
2020-12-25build(deps): bump rand from 0.7.3 to 0.8.0 (#2016)dependabot-preview[bot]
2020-12-22feat(utils): Support non-exe commands on Windows (#2019)Thomas O'Donnell
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.
2020-12-19feat(package): Meson package support (#2001)花蛄
* Add package version support for Meson meson.build. * Update docs with Meson package version support.
2020-12-19feat(init): prefix STATUS and PREEXEC_READY shell vars with STARSHIP_ (#1710)Bjørn Forsman
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.)
2020-12-16refactor: a few low-hanging optimizations (#1992)Alexandru Macovei
* 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
2020-12-14feat(shlvl): Add `repeat` option (#1995)Daniel Beckwith
2020-12-13fix(config): log as error if failure to read config wasn't caused by ↵David Knaack
NotFound (#1993)
2020-12-08feat(git_branch): show remote name (#1972)Sagittarius-a
* 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
2020-12-07fix(git_commit): show last created tag on current commit (#1919)Miguel Ángel Melón Pérez
* 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'
2020-12-06feat(username): Try harder to guess if inside ssh (#1964)yangsheng6810
* 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>
2020-12-05feat: Move cmd_duration after custom module (#1681)quentm74
2020-12-05feat(nodejs): check node engines version in package.json (#1847)t-mangoe
* check node engines version in package.json * fix code, following review.
2020-12-02style: Add comments for bash preexec fix (#1952)Kevin Song
* Add comments for bash fix * Rewrite commend
2020-12-02fix: bg:none overwrites foreground colour (#1903)Cody Bloemhard
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.
2020-12-02fix(bash): Fix background jobs with z/autojump (#1897)Harald Hoyer
Fixes issue where having z.sh or autojump hooked in bash would cause spurious background job indicators to appear.
2020-11-30feat(python): Smarter python binary usage (#1947)Thomas O'Donnell
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`.
2020-11-30feat(rust): Support new rust-toolchain format (#1938)Dominik Nakamura
* 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
2020-11-30feat(java): Show Java module for Clojure projects (#966)Zane Shelby
2020-11-26fix(git_state): Handle gitdir indirection when rebasing (#1744)Gabriel de Perthuis
* 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
2020-11-23perf(memory_usage): replace sysinfo with sys-info (#1886)David Knaack
* perf(memory_usage): replace sysinfo with sys-info * format * simplify error handling