Mercurial > dotfiles
comparison 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 |
comparison
equal
deleted
inserted
replaced
253:18d7db1d1863 | 254:9ea1d601383e |
---|---|
50 set gray (set_color -o black) | 50 set gray (set_color -o black) |
51 set hg_promptstring "< on $magenta<branch>$normal>< at $yellow<tags|$normal, $yellow>$normal>$green<status|modified|unknown><update>$normal< | 51 set hg_promptstring "< on $magenta<branch>$normal>< at $yellow<tags|$normal, $yellow>$normal>$green<status|modified|unknown><update>$normal< |
52 patches: <patches|join( → )|pre_applied($yellow)|post_applied($normal)|pre_unapplied($gray)|post_unapplied($normal)>>" 2>/dev/null | 52 patches: <patches|join( → )|pre_applied($yellow)|post_applied($normal)|pre_unapplied($gray)|post_unapplied($normal)>>" 2>/dev/null |
53 | 53 |
54 function virtualenv_prompt | 54 function virtualenv_prompt |
55 if [ -n "$VIRTUAL_ENV" ] | 55 #if [ -n "$VIRTUAL_ENV" ] |
56 printf '(%s) ' (basename "$VIRTUAL_ENV") | 56 # printf '(%s) ' (basename "$VIRTUAL_ENV") |
57 #end | |
58 if set -q VIRTUAL_ENV | |
59 set_color -b blue white | |
60 printf '(%s)' (basename "$VIRTUAL_ENV") | |
61 set_color normal | |
62 printf ' ' | |
57 end | 63 end |
58 end | 64 end |
59 | 65 |
60 function hg_prompt | 66 function hg_prompt |
61 hg prompt --angle-brackets $hg_promptstring 2>/dev/null | 67 hg prompt --angle-brackets $hg_promptstring 2>/dev/null |
120 | 126 |
121 alias md 'mkdir -p' | 127 alias md 'mkdir -p' |
122 | 128 |
123 # }}} | 129 # }}} |
124 | 130 |
131 # Virtualenv wrapper for Fish {{{ | |
132 | |
133 #set -g VIRTUALFISH_COMPAT_ALIASES # uncomment for virtualenvwrapper-style commands | |
134 . $HOME/.config/fish/virtualfish/virtual.fish | |
135 # optional plugins | |
136 #. path/to/auto_activation.fish | |
137 #. path/to/global_requirements.fish | |
138 #. path/to/projects.fish | |
139 | |
140 # }}} | |
141 | |
125 # Local Settings {{{ | 142 # Local Settings {{{ |
126 | 143 |
127 if test -s $HOME/.config/fish/local.fish | 144 if test -s $HOME/.config/fish/local.fish |
128 . $HOME/.config/fish/local.fish | 145 . $HOME/.config/fish/local.fish |
129 end | 146 end |