| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Currently you can't make a conditional custom segment. This changes the
prompt_custom function responsible for printing custom segments so that
it won't print the segment in case the content is empty.
With this it becomes possible to make conditional custom prompts simply
by making it not print anything when it's not supposed to be shown.
|
|\
| |
| | |
Handle shorting path when in the .git directory
|
| | |
|
| |
| |
| |
| |
| |
| | |
`git rev-parse --git-dir` returns just `.` when in the top level of
a`.git` directory. This would cause a problem when extracting the
package_path. Closes #271
|
|\ \
| | |
| | | |
Only match first name in package.json
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This ensures that the following package.json extract would just give the
prompt "foo" rather than "foo\nbar".
{
"name": "foo",
"author":
{
"name": "bar",
}
}
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit provides a new segment `pyenv` to show current python environment.
This prompt can be used in place of `virtualenv` segment. However, it is
targeted at users of [pyenv](https://github.com/yyuu/pyenv) and not meant to
replace the `virtualenv` segment.
The prompt works by parsing output of `pyenv version` and displaying the first
word of the output as segment text. The design (color etc.) is same as the
`virtualenv` segment including the icon. The segment would need to be
revisited if `pyenv version` changes its output format.
Tested on my personal machines (Mac OSX 10.11.4 and Ubuntu 15.04).
|
|\
| |
| | |
PYTHON ICON for virtualenv prompt
|
| | |
|
|/
|
|
|
|
| |
Now it is possible to set the installation path by setting
POWERLEVEL9K_INSTALLATION_PATH. If set, this path will always be used.
If it was not set manually, we try to determine the path automatically.
|
|\
| |
| | |
Fix incorrect background jobs number
|
| | |
|
| | |
|
| | |
|
|/
|
|
| |
70% cpu core utilisation
|
|
|
|
|
|
|
|
| |
The segment relies on a lookaround to determine the currently
active conda environment.
If available ack is preferred, otherwise grep will be used.
Recent versions of grep offer `-P` to support perl-regex.
Older ones (e.g. those shipped on OSX) will fail.
|
|\
| |
| | |
rust icon added to rust segment
|
| | |
|
| | |
|
|/ |
|
|\
| |
| | |
Add shortening strategy based on package.json name
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Add a new segment for current active docker machine
|
| |/ |
|
| | |
|
|/
|
|
|
|
|
|
|
|
| |
This commit changes nvm prompt setup to return immediately if no node
version is installed/available.
Currently, prompt complains for lack of global node version.
Specifically, if you install nvm (from brew or manually) and do not have
global node installed (or set), then the prompt should not set or show
anything. This commit ensures this by immediately returning if
`nvm current` returns "none".
|
| |
|
| |
|
| |
|
|\
| |
| | |
Rename vcs default state
|
| | |
|
|\ \
| |/
|/| |
Adding `nodeenv` segment.
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Allowing VCS Foreground Color to be over-rideable.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
The VCS segment had a lot of own color definitions. Now they are all
gone, so that the only color definitions are when the segment gets
printed.
|
|\ \ \
| |/ /
|/| | |
Improve the rbenv prompt by using `version-name`
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Prior to this, the rbenv prompt only showed something if the
$RBENV_VERSION environment variable was set. This was not a complete
solution because rbenv can be configured locally, per directory, with
dotfiles. When using dotfiles, the $RBENV_VERSION variables is not set.
This fixes the issue by taking the output of the `rbenv version-name`
command which shows the real rbenv version being used based on any of
the 4 ways to change rbenv as shown here:
https://github.com/rbenv/rbenv#choosing-the-ruby-version
If the current version of Ruby being used is the same as the global
Ruby, nothing is shown.
This commit also adds documentation to the README that describes the
prompt.
Fixes issue #215
|
|/ /
| |
| |
| | |
If no GO is available, there should be no output.
|
|\ \ |
|
| | | |
|
|\ \ \
| | |/
| |/| |
|
| | | |
|
| |/ |
|