nesmyslny
0312c7b91e
feat(git_commit): Show the hash of commits when detached HEAD ( #738 )
2020-02-12 14:56:29 -05:00
Thomas O'Donnell
67397d9096
test(golang): refactor golang tests to use mocked command ( #925 )
...
Refactor the golang module tests to use a mocked command and no
longer depend on having a particular version of Go installed.
2020-02-12 13:22:21 -05:00
Brett Mandler
bc600e4321
feat: Add cabal and hpack detection for the haskell module ( #915 )
2020-02-06 19:29:57 -05:00
Andrew Prokhorenkov
cead23edca
test: port Haskell module tests to integration test ( #913 )
2020-02-06 12:12:07 -05:00
Andrew Prokhorenkov
273a937505
feat: Add an Elm module ( #879 )
...
Former-commit-id: d42137309da457a438b554601f0734db963a193e
2020-02-05 22:57:04 -05:00
Youssef Habri
f665df226c
feat: Add Crystal version module ( #170 )
2020-02-04 18:27:06 -05:00
Sam Rose
83337a1a03
perf: Optimize files, folder and extension lookups in Context ( #880 )
2020-02-03 16:57:48 -05:00
Matan Kushner
3365beae09
test(nodejs): Port nodejs module tests from E2E to integraton ( #867 )
...
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 ( #546 )
...
Add a Haskell Stack module when a stack.yaml file is detected
2020-01-25 00:48:39 -06:00
Sam Rose
f4c095de92
fix(java): Add detection for *.gradle files ( #871 )
...
Currently the Java module detection looks for build.gradle specifically, but it's possible to rename build.gradle to *.gradle. This change adds Gradle files to the list of detected file extensions.
2020-01-24 10:22:30 -05:00
Peter Bull
b723a7d562
fix(python): Trim "Anaconda, Inc." from version ( #861 )
2020-01-21 11:14:40 -05:00
Thomas O'Donnell
197376633a
fix: Fix incorrect prefix usage in cmd_duration module ( #832 )
...
Fixed the way the cmd_duration module is setting it's prefix to be the
same as the other modules.
2020-01-18 01:15:08 -06:00
Thomas O'Donnell
0fe90bf018
refactor(dotnet): Use exec_cmd
util ( #826 )
...
Have refactored the dotnet module to use the util::exec_cmd rather than
the Command module directly.
2020-01-15 13:52:38 -05:00
Thomas O'Donnell
60ce320912
refactor(php): Use exec_cmd
util( #825 )
2020-01-12 17:50:25 -05:00
Hendrik Rombach
dab27f3334
fix: Correct module description text for git_commit ( #812 )
2020-01-07 12:12:40 -05:00
David Hewson
178f177dac
perf(hg_branch): Replace direct calls to hg
( #803 )
...
perf: don't use hg process to get branch / bookmark information, each call was taking 250ms and it was making on average 2 calls.
the branch and bookmark information is available in files in the root of the repo, use that instead.
now takes 300 micro seconds
fix: do not use .hgignore to decide if it is an hg repo. was providing false positives. #721
fix: after changing branch the new branch was not show (the old branch was shown), the new branch is now correctly shown. #722
fix: if no branch override was set it would say (no branch) however if you commited in that state you would commit to the branch default so say that instead
2020-01-03 17:51:45 -05:00
Jon Grythe Stødle
8e5fa60fc8
feat: Add the starship explain
command ( #699 )
...
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
marblenix
b82ff321fa
feat(git_status): Add a stash count segment ( #598 )
2019-12-28 22:20:36 -05:00
Tobias Bieniek
ecc8754335
fix(package): Use specified directory instead of current working directory ( #774 )
2019-12-23 22:38:00 -05:00
Matan Kushner
8cf4ce21d9
perf: Dereference before to_string in aws module
2019-12-20 12:58:59 -05:00
Mike Sampson
256a2be949
feat: Implement AWS region aliases ( #646 )
2019-12-20 12:30:47 -05:00
Luca Rinaldi
6a2b0a67b0
feat: cmd_duration module optionally reports milliseconds ( #696 )
2019-12-19 17:38:06 -05:00
Mario Arias
aab35674d2
feat: Adds build.gradle.kts detection to the Java module ( #731 )
2019-12-19 10:17:50 -05:00
David Knaack
6724ce5bb5
fix(powershell): % sign was prefixed with ` ( #730 )
2019-12-13 14:55:20 -05:00
dependabot-preview[bot]
d71373b265
build(deps): bump sysinfo from 0.9.6 to 0.10.2 ( #711 )
2019-12-12 15:32:46 -05:00
Morten Scheel
e38a257656
feat: add composer.json version to Package module ( #716 )
2019-12-11 21:05:39 -05:00
AppleTheGolden
3c835ba34b
fix: Truncate long paths in conda environment names ( #694 )
...
Environment names created via conda create -p [path] tend to be too long for comfort, so this truncates them.
2019-12-09 12:59:02 -05:00
wdullaer
44b37a7bac
feat: Implement terraform module with workspace and version ( #644 )
2019-12-08 20:42:51 -05:00
Dan Wendorf
dee25c7b35
feat: Add prefix config to directory module ( #642 )
2019-12-06 14:19:11 -05:00
Qingping Hou
c5a206e3cf
feat: Add git_commit module ( #673 )
2019-12-06 11:57:42 -05:00
Stephen Ball
46904e5045
feat: Add PHP version module ( #244 )
2019-12-05 13:04:27 -05:00
Luca Rinaldi
1558b22bb0
fix: multiple batteries support in the battery module ( #669 )
...
Closes #656
2019-12-03 11:48:50 -05:00
Thomas O'Donnell
edc62f4518
refactor: Refactor modules to use the exec_cmd util ( #676 )
...
Have refactored the golang, java, nodejs, python, ruby and username
modules to use the new `exec_cmd` util.
2019-12-02 17:42:55 -05:00
Luca Greco
337f213753
feat: Add the hg_branch module ( #569 )
2019-12-02 17:37:18 -05:00
Raidou
2a75a18eb1
fix: Fix panic when using fish-style pwd with unicode symbols ( #672 )
2019-11-29 00:02:22 -05:00
Thomas O'Donnell
45d977aa39
fix: Remove duplicated "v" in package versions ( #648 )
2019-11-20 09:16:07 -05:00
Matias Kotlik
135dddbb4f
feat: Add separator config to the memory module ( #603 )
2019-11-13 10:57:46 +09:00
Thomas O'Donnell
fc2f644237
fix: Add support for multiple Kubeconfig files ( #635 )
...
This adds support for having multiple Kubeconfig file set as part of the
`KUBECONFIG` env var.
2019-11-12 14:34:01 +09:00
Zhenhui Xie
5bb7467b56
refactor: Cleanup after module config refactor ( #630 )
2019-11-07 12:38:30 +09:00
Zhenhui Xie
a3d5ea3e43
refactor: Refactor git state module to use module config ( #605 )
2019-11-06 22:00:31 +09:00
Zhenhui Xie
48726fdd2a
refactor: Refactor nix_shell and java module to use module config ( #606 )
2019-11-06 21:59:12 +09:00
Thomas O'Donnell
42f6868e3f
feat: Enable the python module in virtual envs ( #584 )
...
This will enable the python module when a virtual environment has been
activated, this is detected via the `VIRTUAL_ENV` env var.
2019-11-02 20:10:21 +09:00
Cédric Da Fonseca
fa1267f12f
feat: Add configuration to set how much AWS profile info is shown ( #556 )
2019-11-02 20:08:54 +09:00
Matias Kotlik
e01c41eddf
style: Clean up Golang module ( #612 )
2019-11-01 10:53:28 +09:00
Brian Low
2710d02709
feat: Show git_status counts ( #434 )
...
The git_status module can show the count of files next to their respective symbols.
2019-10-26 15:20:20 +09:00
yuri
b7762a3e91
fix: Show Java version from OpenJ9 Java runtimes ( #507 )
...
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
aa260899d4
fix: Use logical path instead of physical path when available ( #398 )
...
* Get pathbuf from logical path. (fixes #204 )
(also fixes #397 )
* fix: Update directory module so that use_logical_path will work properly
* Remove test directory::use_logical_and_physical_paths
* Fix merge errors
Co-authored-by: Matan Kushner <hello@matchai.me>
2019-10-24 19:37:44 +09:00
Thomas O'Donnell
e0c90a6502
refactor: Remove to remove unneeded mutability ( #577 )
...
Removed a couple of unneeded `mut`s that were pointed out by `cargo
check`.
2019-10-24 19:31:17 +09:00
Matias Kotlik
86bb923303
refactor: Refactor memory_usage module to use module config. ( #515 )
...
Also addresses a number of bugs:
- the percent sign not displaying correctly on some terminal emulators, including kitty
- changing the symbol in the configuration file didn't do anything
- swap being shown even if the system didn't have any
2019-10-21 00:26:04 +09:00
Thomas O'Donnell
7b9197a67e
fix: Fix the python module ignoring error codes ( #563 )
...
This is a quick fix to stop the python module from displaying error
messages that have been printed to stderr as the version.
2019-10-20 17:42:27 +09:00