|
|
|
@ -3,8 +3,7 @@
|
|
|
|
|
# Install script for zsh-autocomplete
|
|
|
|
|
|
|
|
|
|
config="$HOME/.zshrc"
|
|
|
|
|
for config in "$HOME/.zshrc" "$ZDOTDIR/.zshrc" "$1"
|
|
|
|
|
do
|
|
|
|
|
for config in "$HOME/.zshrc" "$ZDOTDIR/.zshrc" "$1"; do
|
|
|
|
|
echo $config
|
|
|
|
|
#first checks if ~/.zshrc file exists and is readable
|
|
|
|
|
if [ -r "$config" ]; then
|
|
|
|
@ -24,7 +23,7 @@ done
|
|
|
|
|
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
|
|
|
|
|
|
|
|
|
# appends the string to $config (usually ~/.zshrc) file
|
|
|
|
|
cat >> "$config" << EOF
|
|
|
|
|
cat >> "$config" <<-EOF
|
|
|
|
|
|
|
|
|
|
# Setup zsh-autosuggestions
|
|
|
|
|
source $DIR/autosuggestions.zsh
|
|
|
|
|