setting up direnv even though i think it's gross

master
Jordan Orelli 6 months ago
parent c5875a6b66
commit 85c7b81825

@ -1,3 +1,5 @@
[user] [user]
name = Jordan Orelli name = Jordan Orelli
email = jordanorelli@gmail.com email = jordanorelli@gmail.com
[pull]
rebase = true

@ -1,10 +1,15 @@
# start up the autocompletions engine # start up the autocompletions engine
autoload -Uz compinit && compinit autoload -Uz compinit && compinit
autoload -U colors && colors autoload -U colors && colors
# this has to do with git integration but I don't really get it yet
autoload -Uz vcs_info autoload -Uz vcs_info
# adds the cargo environment, which also adds rust binaries. We want to do this
# early in case anything else depends on a rust binary, such as direnv
if [[ -f "$HOME/.cargo/env" ]]; then
. "$HOME/.cargo/env"
fi
# configure git info in shell prompt
precmd_vcs_info() { vcs_info } precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info ) precmd_functions+=( precmd_vcs_info )
setopt prompt_subst setopt prompt_subst
@ -33,11 +38,14 @@ export LS_COLORS
alias ls="ls --color=auto" alias ls="ls --color=auto"
# if kitty is installed, register its completions # if kitty is installed, register its completions
if command -v kitty &> /dev/null if (( $+commands[kitty] )); then
then
source <(kitty + complete setup zsh) source <(kitty + complete setup zsh)
fi fi
if (( $+commands[direnv] )); then
eval "$(direnv hook zsh)"
fi
# run local machine-specific settings # run local machine-specific settings
if [ -f "$HOME/.zlocalrc" ]; then if [ -f "$HOME/.zlocalrc" ]; then
source "$HOME/.zlocalrc" source "$HOME/.zlocalrc"
@ -53,7 +61,5 @@ if [ -d /usr/local/go ]; then
export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin
fi fi
if [[ -f "$HOME/.cargo/env" ]]; then # allow comments on the command line
. "$HOME/.cargo/env" setopt interactivecomments
fi

Loading…
Cancel
Save