diff --git a/.Brewfile.Darwin.launchpad b/.Brewfile.Darwin.launchpad index fd6bf80..c9e1de4 100644 --- a/.Brewfile.Darwin.launchpad +++ b/.Brewfile.Darwin.launchpad @@ -19,6 +19,7 @@ brew "bat" brew "bpytop" brew "cmake" brew "difftastic" +brew "direnv" brew "doctl" brew "sdl2" brew "dosbox" diff --git a/.zshrc b/.zshrc index 785ff95..3c4339e 100644 --- a/.zshrc +++ b/.zshrc @@ -51,7 +51,7 @@ antigen bundle fzf #antigen bundle unixorn/fzf-zsh-plugin #antigen bundle pipenv antigen bundle asdf -#antigen bundle dotenv +antigen bundle dotenv # antigen bundle poetry antigen bundle "MichaelAquilina/zsh-autoswitch-virtualenv" antigen bundle nvim @@ -70,6 +70,7 @@ source <(helm completion zsh) zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} eval "$(starship init zsh)" +eval "$(direnv hook zsh)" alias ta='tmux a' alias tl='tmux ls && read session && tmux attach -t ${session:-default} || tmux new -s ${session:-default}' diff --git a/direnv/direnv.toml b/direnv/direnv.toml new file mode 100644 index 0000000..89ac394 --- /dev/null +++ b/direnv/direnv.toml @@ -0,0 +1,2 @@ +[global] +load_dotenv = true diff --git a/setup.sh b/setup.sh index d4272f0..69a54e0 100755 --- a/setup.sh +++ b/setup.sh @@ -21,6 +21,7 @@ CONFIG_FILES=( pycodestyle starship.toml stylua.toml + direnv ) CUSTOM_FILES=(