diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-07-12 02:39:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-12 02:39:54 +0300 |
commit | 6735c24e621e435827f414103e8ab312c7eb8845 (patch) | |
tree | ec7572b09e9b276e20026f179bb4643ce16e7d2d | |
parent | 4be16020b7cd7241b75c23db9f5bd3d4fce84686 (diff) | |
parent | 65c770606b621a9d1cf809345f7baac6c800ff2a (diff) |
Merge pull request #547 from D-side/patch-1
Fixed RVM segment for usernames with dashes
-rwxr-xr-x | powerlevel9k.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 26ab9cd5..657d691d 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -990,7 +990,7 @@ prompt_rvm() { local gemset=$(echo $GEM_HOME | awk -F'@' '{print $2}') [ "$gemset" != "" ] && gemset="@$gemset" - local version=$(echo $MY_RUBY_HOME | awk -F'-' '{print $2}') + local version=$(echo $MY_RUBY_HOME | awk -F'-' '{print $NF}') if [[ -n "$version$gemset" ]]; then "$1_prompt_segment" "$0" "$2" "240" "$DEFAULT_COLOR" "$version$gemset" 'RUBY_ICON' |