add direnv

Signed-off-by: Lee Tang <i@d0zingcat.dev>
This commit is contained in:
Lee Tang
2023-02-17 17:58:19 +08:00
parent 57fd35fbb6
commit 3b2092812a
4 changed files with 6 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ brew "bat"
brew "bpytop"
brew "cmake"
brew "difftastic"
brew "direnv"
brew "doctl"
brew "sdl2"
brew "dosbox"

3
.zshrc
View File

@@ -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}'

2
direnv/direnv.toml Normal file
View File

@@ -0,0 +1,2 @@
[global]
load_dotenv = true

View File

@@ -21,6 +21,7 @@ CONFIG_FILES=(
pycodestyle
starship.toml
stylua.toml
direnv
)
CUSTOM_FILES=(