mauvehed's dotfiles for personal and work environments
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix .venv autoload

mauvehed 11d3a95f bed81776

+17 -12
+17 -12
dot_zshrc.tmpl
··· 74 74 #bindkey '^[[B' history-search-forward 75 75 {{ else }} 76 76 # Don't track shell history 77 - #unset HISTFILE 77 + unset HISTFILE 78 78 {{ end }} 79 79 80 80 # Recommended by pyenv oh-my-zsh plugin ··· 189 189 190 190 autoload -Uz add-zsh-hook 191 191 192 - # Activate Python venv when entering a directory containing a ".venv" subdirectory 193 - activate_venv_on_cd() { 194 - local venv_dir=".venv" 195 - if [[ -d "$PWD/$venv_dir" ]]; then 196 - source "$PWD/$venv_dir/bin/activate" 197 - fi 198 - } 199 - 200 - autoload -U add-zsh-hook 201 - add-zsh-hook chpwd activate_venv_on_cd 202 - 203 192 #autoload -Uz chpwd_functions 204 193 #chpwd_functions+=ensure_envrc 205 194 ··· 229 218 230 219 # set bat theme 231 220 export BAT_THEME=Dracula 221 + 222 + activate_venv_on_cd() { 223 + echo "testing hook" 224 + } 225 + add-zsh-hook chpwd activate_venv_on_cd 226 + 227 + # Activate Python venv when entering a directory containing a ".venv" subdirectory 228 + activate_venv_on_cd() { 229 + local venv_dir=".venv" 230 + if [[ -d "$PWD/$venv_dir" ]]; then 231 + source "$PWD/$venv_dir/bin/activate" 232 + fi 233 + } 234 + 235 + autoload -U add-zsh-hook 236 + add-zsh-hook chpwd activate_venv_on_cd