diff options
-rw-r--r-- | .config/fish/config.fish | 2 | ||||
-rw-r--r-- | .config/fish/functions/fish_right_prompt.fish | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish index dd9c3fd..d0e9307 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish | |||
@@ -20,6 +20,8 @@ set --global --export WECHALLUSER "drocan" | |||
20 | set --global --export WECHALLTOKEN "35624-0D38B-A2F16-A98B0-5963D-6DF19" | 20 | set --global --export WECHALLTOKEN "35624-0D38B-A2F16-A98B0-5963D-6DF19" |
21 | set --global --export RUST_SRC_PATH (rustc --print sysroot)/lib/rustlib/src/rust/library/ | 21 | set --global --export RUST_SRC_PATH (rustc --print sysroot)/lib/rustlib/src/rust/library/ |
22 | set --global --export NLTK_DATA "$HOME/.local/share/nltk_data" | 22 | set --global --export NLTK_DATA "$HOME/.local/share/nltk_data" |
23 | set --global --export VIRTUALFISH_HOME "$HOME/.envs" | ||
24 | |||
23 | 25 | ||
24 | if status is-interactive | 26 | if status is-interactive |
25 | 27 | ||
diff --git a/.config/fish/functions/fish_right_prompt.fish b/.config/fish/functions/fish_right_prompt.fish index 0dbcc37..5963ed9 100644 --- a/.config/fish/functions/fish_right_prompt.fish +++ b/.config/fish/functions/fish_right_prompt.fish | |||
@@ -1,4 +1,4 @@ | |||
1 | function fish_right_prompt -d "Write out the right prompt" | 1 | function fish_right_prompt --description 'Write out the right prompt' |
2 | 2 | ||
3 | if not set -q -g __fish_right_prompt_functions_defined | 3 | if not set -q -g __fish_right_prompt_functions_defined |
4 | set -g __fish_right_prompt_functions_defined | 4 | set -g __fish_right_prompt_functions_defined |
@@ -58,6 +58,7 @@ function fish_right_prompt -d "Write out the right prompt" | |||
58 | set -l yellow (set_color -o yellow) | 58 | set -l yellow (set_color -o yellow) |
59 | set -l red (set_color -o red) | 59 | set -l red (set_color -o red) |
60 | set -l blue (set_color -o blue) | 60 | set -l blue (set_color -o blue) |
61 | set -l green (set_color -o green) | ||
61 | 62 | ||
62 | set -l repo_info | 63 | set -l repo_info |
63 | if set -l repo_type (_repo_type) | 64 | if set -l repo_type (_repo_type) |
@@ -70,6 +71,11 @@ function fish_right_prompt -d "Write out the right prompt" | |||
70 | end | 71 | end |
71 | end | 72 | end |
72 | 73 | ||
74 | set -l virtualenv | ||
75 | if set -q VIRTUAL_ENV | ||
76 | set virtualenv "$green 🐍 " (basename "$VIRTUAL_ENV") | ||
77 | end | ||
78 | |||
73 | set hour $blue(date '+%R') | 79 | set hour $blue(date '+%R') |
74 | echo -n -s $repo_info ' ' $hour | 80 | echo -n -s $virtualenv ' ' $repo_info ' ' $hour |
75 | end | 81 | end |