You've already forked dotfiles
fix: Updating with double quotations after determining the issue was
with the optional overwriting of the oh-my-zsh plugin install not playing well. Removed the overwriting as it is not needed.
This commit is contained in:
17
zsh/zshrc
17
zsh/zshrc
@@ -13,7 +13,6 @@ path=(
|
||||
|
||||
# De-dupe path entries
|
||||
typeset -U path
|
||||
# path=($^path(N-/))
|
||||
|
||||
# Install oh-my-zsh if it doesn't exist
|
||||
if [ ! -d "$HOME/.oh-my-zsh/" ]
|
||||
@@ -24,9 +23,9 @@ fi
|
||||
export ZSH="$HOME/.oh-my-zsh"
|
||||
|
||||
# Install the zsh-autosuggestions plugin if it doesn't exist
|
||||
if [ ! -d ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions ]
|
||||
if [ ! -d "$HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions" ]
|
||||
then
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions "$HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions"
|
||||
fi
|
||||
|
||||
plugins=(
|
||||
@@ -80,16 +79,16 @@ include_files=(
|
||||
)
|
||||
|
||||
for file in "${include_files[@]}"; do
|
||||
if [ ! -f $HOME/$file ]
|
||||
then
|
||||
# Create files even if they aren't overriden in the environment
|
||||
touch $HOME/$file
|
||||
full_path="$HOME/$file"
|
||||
|
||||
if [ ! -f "$full_path" ]; then
|
||||
touch "$full_path"
|
||||
fi
|
||||
|
||||
source $HOME/$file
|
||||
source "$full_path"
|
||||
done
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
source "$ZSH/oh-my-zsh.sh"
|
||||
|
||||
# Call to zprof for startup timings
|
||||
# zprof
|
||||
|
||||
Reference in New Issue
Block a user