mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
Fixed zsh errors on M1
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user