Mercurial > dotfiles
diff fish/config.fish @ 254:9ea1d601383e
Virtualenv wrapper for Fish.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 06 Jan 2015 23:21:04 -0800 |
parents | e869b2f99c75 |
children | 1542a1b041fc |
line wrap: on
line diff
--- a/fish/config.fish Tue Jan 06 23:18:10 2015 -0800 +++ b/fish/config.fish Tue Jan 06 23:21:04 2015 -0800 @@ -52,8 +52,14 @@ patches: <patches|join( → )|pre_applied($yellow)|post_applied($normal)|pre_unapplied($gray)|post_unapplied($normal)>>" 2>/dev/null function virtualenv_prompt - if [ -n "$VIRTUAL_ENV" ] - printf '(%s) ' (basename "$VIRTUAL_ENV") + #if [ -n "$VIRTUAL_ENV" ] + # printf '(%s) ' (basename "$VIRTUAL_ENV") + #end + if set -q VIRTUAL_ENV + set_color -b blue white + printf '(%s)' (basename "$VIRTUAL_ENV") + set_color normal + printf ' ' end end @@ -122,6 +128,17 @@ # }}} +# Virtualenv wrapper for Fish {{{ + +#set -g VIRTUALFISH_COMPAT_ALIASES # uncomment for virtualenvwrapper-style commands +. $HOME/.config/fish/virtualfish/virtual.fish +# optional plugins +#. path/to/auto_activation.fish +#. path/to/global_requirements.fish +#. path/to/projects.fish + +# }}} + # Local Settings {{{ if test -s $HOME/.config/fish/local.fish