diff options
Diffstat (limited to 'bash')
| -rw-r--r-- | bash/.bashrc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index 849f400..33a6160 100644 --- a/bash/.bashrc +++ b/bash/.bashrc | |||
| @@ -109,6 +109,13 @@ DIRENV=`which direnv` | |||
| 109 | if [[ -x $DIRENV ]]; then | 109 | if [[ -x $DIRENV ]]; then |
| 110 | eval "$(direnv hook bash)" | 110 | eval "$(direnv hook bash)" |
| 111 | fi | 111 | fi |
| 112 | show_virtual_env() { | ||
| 113 | if [[ -n "$VIRTUAL_ENV" && -n "$DIRENV_DIR" ]]; then | ||
| 114 | echo "($(basename $VIRTUAL_ENV))" | ||
| 115 | fi | ||
| 116 | } | ||
| 117 | export -f show_virtual_env | ||
| 118 | PS1='$(show_virtual_env)'$PS1 | ||
| 112 | 119 | ||
| 113 | # Enable warpdir (https://rc4.net/wd-rs/) | 120 | # Enable warpdir (https://rc4.net/wd-rs/) |
| 114 | WARPDIR=`which warpdir` | 121 | WARPDIR=`which warpdir` |