mirror of
https://github.com/KevinMidboe/dotfiles.git
synced 2025-10-29 17:40:19 +00:00
Added oh-my-zsh in all its glory
This commit is contained in:
10
.oh-my-zsh/plugins/dotenv/dotenv.plugin.zsh
Normal file
10
.oh-my-zsh/plugins/dotenv/dotenv.plugin.zsh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/zsh
|
||||
|
||||
source_env() {
|
||||
if [[ -f .env ]]; then
|
||||
source .env
|
||||
fi
|
||||
}
|
||||
|
||||
autoload -U add-zsh-hook
|
||||
add-zsh-hook chpwd source_env
|
||||
Reference in New Issue
Block a user