From 9c58ed765b13a92d8518fb41f4c09d5b19b38c04 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Fri, 29 Sep 2023 14:12:28 -0700 Subject: [PATCH] mu --- runcoms/zshrc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/runcoms/zshrc b/runcoms/zshrc index e86a3f4..818f2fb 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -10,6 +10,11 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" fi +export PATH=~/.dotfiles/bin:$PATH +export EDITOR=nvim +export VISUAL=nvim +export RPROMPT= + if command -v direnv &> /dev/null; then eval "$(direnv hook zsh)" fi @@ -18,10 +23,6 @@ export NIX_PATH=${NIX_PATH:+$NIX_PATH:}$HOME/.nix-defexpr/channels:/nix/var/nix/ zstyle :prompt:pure:prompt:success color green -export EDITOR=nvim -export VISUAL=nvim -export RPROMPT= - unsetopt correct # Don't autocorrect unsetopt flowcontrol # So ^S and ^Q can be used setopt no_nomatch # Pass bad matches on @@ -42,8 +43,8 @@ function eject { command hdiutil eject `df | grep Volumes | grep -i "$@" | ruby # allow for pasting commands from the interwebs with a preceding $ prompt function \$() { "$@" } -if [ -e $HOMEBREW_PREFIX/share/z.lua/z.lua ]; then - eval "$(lua $HOMEBREW_PREFIX/share/z.lua/z.lua --init zsh enhanced fzf)" +if [ -e $(brew --prefix z.lua)/share/z.lua/z.lua ]; then + eval "$(lua $(brew --prefix z.lua)/share/z.lua/z.lua --init zsh enhanced fzf)" fi if [ $commands[eza] ]; then