Spaceship-prompt: pyenv has multiple entries, which wraps to next line in spaceship

Created on 12 May 2017  ·  5Comments  ·  Source: denysdovhan/spaceship-prompt

In pyenv, you can set any number of local versions:

$ pyenv local 3.5 3.6

My pyenv local:

➜ pyenv local
3.6.0b3
3.5.2
system

My prompt:

~/projects/cib on  master [!] on 🐳  v17.04.0-ce via 🐍  3.6.0b3
3.5.2
system 
➜ 
bug

All 5 comments

@SanketDG yeah, looks shitty. Should be fixed.

A simple fix should just be:

pyenv_status=$(echo "$pyenv_status" | tr '\n' ' ')

@SanketDG what about pyenv version-name? Does it works for global version too or just for local?

Using version-name seems more semantically correct than using kind of _tricks_.

Yup, looks good to me :+1:

@SanketDG could you, please, send a PR?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vburojevic picture vburojevic  ·  3Comments

Vvkmnn picture Vvkmnn  ·  3Comments

JounQin picture JounQin  ·  3Comments

xhaythemx picture xhaythemx  ·  3Comments

martincartledge picture martincartledge  ·  4Comments