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

Add theme_virtual_env_prompt_enabled option #75

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion functions/fish_prompt.fish
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# set -g default_user your_normal_user
# set -g theme_svn_prompt_enabled yes
# set -g theme_mercurial_prompt_enabled yes
# set -g theme_virtual_env_prompt_enabled yes
# set -g theme_virtual_env_prompt_enabled no



Expand Down Expand Up @@ -83,6 +85,11 @@ set -q theme_svn_prompt_enabled; or set -g theme_svn_prompt_enabled no

set -q theme_mercurial_prompt_enabled; or set -g theme_mercurial_prompt_enabled no

# ===========================
# Virtual environmnet settings

set -q theme_virtual_env_prompt_enabled; or set -g theme_virtual_env_prompt_enabled yes

# ===========================
# Helper methods
# ===========================
Expand Down Expand Up @@ -375,7 +382,9 @@ function fish_prompt
prompt_status
prompt_user
prompt_dir
prompt_virtual_env
if [ "$theme_virtual_env_prompt_enabled" = "yes" ]
prompt_virtual_env
end
if [ (cwd_in_scm_blacklist | wc -c) -eq 0 ]
type -q git; and prompt_git
if [ "$theme_mercurial_prompt_enabled" = "yes" ]
Expand Down