move zsh hook to rc, use nvim as default editor

main
Alpha Chen 2 years ago committed by Alpha Chen
parent bf45a3c304
commit c1fa109324
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -10,11 +10,7 @@ if [[ ( "$SHLVL" -eq 1 && ! -o LOGIN ) && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; t
source "${ZDOTDIR:-$HOME}/.zprofile"
fi
if command -v direnv &> /dev/null; then
eval "$(direnv hook zsh)"
fi
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then . $HOME/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
if [ -e $HOME/.cargo/env ]; then . "$HOME/.cargo/env"; fi
export PATH="$HOME/.dotfiles/bin:$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"

@ -10,12 +10,16 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
if command -v direnv &> /dev/null; then
eval "$(direnv hook zsh)"
fi
export NIX_PATH=${NIX_PATH:+$NIX_PATH:}$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels
zstyle :prompt:pure:prompt:success color green
export EDITOR=vim
export VISUAL=vim
export EDITOR=nvim
export VISUAL=nvim
export RPROMPT=
unsetopt correct # Don't autocorrect

Loading…
Cancel
Save