Fixed zsh errors on M1

This commit is contained in:
2021-12-27 13:01:59 -05:00
parent afb17d1f4e
commit cf5521aee2
3 changed files with 22 additions and 22 deletions

View File

@@ -1,3 +1,4 @@
mas "pwSafe", id: "520993579"
mas "Xcode", id: "497799835"
mas "Home Assistant", id: "1099568401"
mas "Vimari", id: "1480933944"

View File

@@ -3,13 +3,6 @@ setopt appendhistory
setopt sharehistory
setopt incappendhistory
fpath=("$ZDOTDIR/completions" $fpath)
autoload -Uz compinit; compinit
zstyle ':completion:*' menu select
zmodload zsh/complist
# compinit
_comp_options+=(globdots) # Include hidden files.
autoload -U up-line-or-beginning-search
autoload -U down-line-or-beginning-search
zle -N up-line-or-beginning-search
@@ -18,11 +11,6 @@ zle -N down-line-or-beginning-search
# Colors
autoload -Uz colors && colors
# Homebrew
if [ "$(which brew)" ]; then
eval "$(brew shellenv)"
fi
# Load Useful Functions
source "$ZDOTDIR/zsh-functions"
@@ -32,14 +20,27 @@ zsh_add_file "zsh-exports"
# Plugins
zsh_add_plugin "zsh-users/zsh-autosuggestions"
zsh_add_plugin "zsh-users/zsh-syntax-highlighting"
#zsh_add_plugin "sindresorhus/pure"
# Homebrew
if [ "$(which brew)" ]; then
eval "$(brew shellenv)"
fi
# compinit
fpath=("$ZDOTDIR/completions" $fpath)
autoload -Uz compinit; compinit
zstyle ':completion:*' menu select
zmodload zsh/complist
_comp_options+=(globdots) # Include hidden files.
# Prompt / managed by brew. (`brew install pure`)
#fpath+="$ZDOTDIR/plugins/pure"
autoload -U promptinit; promptinit
autoload -Uz promptinit; promptinit
prompt pure
# Enable vi mode
bindkey -v
#bindkey -v
cat < "$ZDOTDIR/banner"

View File

@@ -10,21 +10,19 @@ export SHELL="$(which zsh)"
export PATH=~/.bin:$PATH
export PATH=~/.local/scripts:$PATH
# Allow git to work on mounted volumes
export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
# Add homebrew to the path
if [ -d /opt/homebrew ]; then
export PATH=/opt/homebrew/bin:$PATH
export PATH=/opt/homebrew/sbin:$PATH
fi
# Allow git to work on mounted volumes
export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
# zsh-completions installed by homebrew
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
autoload -Uz compinit
compinit
fi
export EDITOR="nvim"