aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJan Laermann <laermannjan@gmail.com>2016-04-19 22:49:57 +0300
committerJan Laermann <laermannjan@gmail.com>2016-04-19 22:49:57 +0300
commit391b3327eed75ffd0de4534fdb1ee5227395528e (patch)
tree2caadb117a25f60430b1e9804abd84a3efa7b04f /README.md
parent511bbcf124552de06a2343ed20bdc97f15a9df2e (diff)
Added anaconda segment.
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.
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6e91b319..637c9b9f 100644
--- a/README.md
+++ b/README.md
@@ -115,6 +115,7 @@ The segments that are currently available are:
* `symfony2_version` - Show the current Symfony2 version, if you are in a Symfony2-Project dir.
* **Python Segments:**
* `virtualenv` - Your Python [VirtualEnv](https://virtualenv.pypa.io/en/latest/).
+ * `anaconda` - Your active [Anaconda](https://www.continuum.io/why-anaconda) environment.
* **Ruby Segments:**
* [`chruby`](#chruby) - Ruby environment information using `chruby` (if one is active).
* [`rbenv`](#rbenv) - Ruby environment information using `rbenv` (if one is active).
@@ -136,6 +137,16 @@ The segments that are currently available are:
---------------------------------------------------------------------------------
+##### anaconda
+
+This segment shows your active anaconda environment.
+
+*Note: This segment relies on a perl-regex with lookbehind.
+If `ack` is not available the segment will try to use `grep`.
+Recent versions of grep offer a `-P` option to handle such things.
+On OSX, however, you want to install gnu-grep (e.g. via `brew install grep`)
+and alias the newly installed `ggrep` to `grep`. Alternatively, `brew install ack`.*
+
##### aws
If you would like to display the [current AWS