Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fish_prompt should also include python venv #5

Open
jorng opened this issue Sep 12, 2017 · 1 comment
Open

fish_prompt should also include python venv #5

jorng opened this issue Sep 12, 2017 · 1 comment

Comments

@jorng
Copy link

jorng commented Sep 12, 2017

If ruby is included, so should python. This is most commonly handled via virtualenv. Could be added via:

function __virtual_env
  if set -q VIRTUAL_ENV
    echo -n -s (set_color yellow) "(" (basename "$VIRTUAL_ENV") ")" (set_color normal) " "
  end
end

function fish_prompt
  echo -n (set_color white)"╭─"(set_color normal)
  __virtual_env
  __user_host
  __current_path
  __ruby_version
  __git_status
  echo -e ''
  echo (set_color white)"╰─"(set_color --bold white)"\$ "(set_color normal)
end
@ylluminate
Copy link

Did you perhaps ever fork this to address this and the other issues you've encountered here? I agree, your issues should be addressed among some other items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants