Peter Bull
b723a7d562
fix(python): Trim "Anaconda, Inc." from version ( #861 )
2020-01-21 11:14:40 -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
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
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
Zhenhui Xie
aadd8ecf2c
refactor: Refactor modules to use module config ( #514 )
2019-10-19 10:51:38 +09:00
Nguyễn Hồng Quân
27fad02837
fix: Separate Python version string and env name ( #548 )
2019-10-17 18:55:48 +09:00
Matan Kushner
05210b9510
refactor: Go from Rust workspaces to a package with nested packages ( #480 )
2019-10-04 22:30:46 +09:00
Zhenhui Xie
dd0b1a1aa2
refactor: Refactoring config ( #383 )
...
This PR refactors config and puts configuration files for all modules in `configs/`.
2019-09-30 21:10:35 +09:00
Thomas O'Donnell
653def05f0
Enable the python module for tox files ( #369 )
...
Enable the python module if the current directory contains a `tox.ini`
file.
2019-09-15 12:21:40 -04:00
Nick Young
7e891f17c1
perf: Lazy load files from directory ( #335 )
...
Changes context to use `once_cell` to lazily evaluate directory listing on first use.
2019-09-14 09:23:53 -05:00
Neil Kistner
9f70ffb7a7
fix: Lazy load git repo and only run module if not disabled ( #306 )
...
A couple of optimizations are done in this PR. One, we now will check config ahead of time to see if a module is disabled before running any module code. Also, we won't try to discover a git repository unless the module requests access to it.
2019-09-09 19:14:38 -04:00
Kevin Song
9721666d33
feat: Add the ability to configure per-module color styles ( #285 )
...
Add parsing logic, config support, docs, and integration with other modules
for custom styling of each module.
2019-09-07 19:33:06 -05:00
Matan Kushner
e66d7bae1c
ci: Migrate CI from Azure Pipelines to GitHub Actions ( #233 )
...
Migrated CI from Azure Pipelines to GitHub Actions.
Until the release process is figured out in Actions, we'll stick to using Azure pipelines for releases.
2019-09-04 19:13:53 -04:00
Thomas O'Donnell
1478f8c2e9
Add support for detecting Python from Pipenv files ( #221 )
...
Added the ability to enable the Python module based on the existence of the a `Pipfile`.
2019-08-21 15:54:22 -07:00
Shu Kutsuzawa
d90c43b8b1
feat: Display Vi mode as PROMPT ( #169 )
...
Add Vi-mode indicator for zsh
2019-08-17 12:33:19 -07:00
MaT1g3R
160a79fa06
feat: Implement configuration to display pyenv version name ( #140 )
...
This behavior can be enabled via setting `use_pyenv` to true.
The "pyenv" prefix before the version name can be configured using `pyenv_prefix`.
2019-08-12 21:12:55 -04:00
MaT1g3R
3669e389b6
feat: Implement Python virtual environment display ( #137 )
2019-08-11 17:51:13 -04:00
Matan Kushner
f40f73dc8e
fix: Address longstanding linter errors
2019-08-05 11:05:08 -04:00
Tiffany Le-Nguyen
08cf33522a
docs: Add vuepress with initial docs ( #99 )
...
Co-authored-by: Tiffany Le-Nguyen <tlenguyen@expedia.com>
Co-authored-by: Matan Kushner <hello@matchai.me>
2019-07-19 16:18:52 -04:00
Matan Kushner
77ba97df19
chore: Refactor getting string values from config ( #94 )
2019-07-14 11:15:47 -04:00
Matan Kushner
463ec26024
feat: Add a disabled
configuration option for modules ( #86 )
...
• Add support for the disabled configuration option
This will allow you to selectively disable modules that you don't want or need. 😄
• Overwrite starship configuration file path with STARSHIP_CONFIG environment variable
• Write tests for the two configuration options that are available
2019-07-02 16:12:53 -04:00
Matan Kushner
097f1b05f1
Add support for prompt configuration ( #62 )
...
- Create `Config` struct that is added to `Context` when initialized
- Read `~/.confg/starship.toml` during initialization (can be updated later to also look at `$XDG_CONFIG_HOME`)
- `Context` now has a method for creating modules. This allows us to provide modules with a reference to the configuration specific to that module
2019-06-10 15:56:17 +01:00
John Letey
4cd98d862d
fix: Check both stderr and stdout for Python version ( #66 )
...
* fix python version not showing for version < 3.4
* make review changes
2019-05-27 02:28:14 -04:00
Tim Mulqueen
5fd715e7c3
Implement directory scanner ( #34 )
2019-05-12 13:37:23 -04:00
Matan Kushner
c6ee5c6ac1
Refactor segments into modules ( #40 )
2019-05-01 16:34:24 -04:00
Matan Kushner
9a352c0acc
Add the Git branch segment ( #32 )
...
Added
- Repository to Context for reuse in directory and git_branch
- git_branch to prompt
Changed
- Made segments bold to match spaceship
2019-04-26 22:07:07 -04:00
John Letey
ca12d22ace
Add Python version segment ( #23 )
2019-04-25 11:06:18 -04:00