From 749f5346075e40009569bb8457657c6a3f28fa08 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 18 Sep 2021 18:18:53 -0400 Subject: [PATCH] [O] Make autosuggestions not mac-only --- scripts/includes/autosuggestions.sh | 1 + scripts/includes/mac.sh | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) create mode 100644 scripts/includes/autosuggestions.sh diff --git a/scripts/includes/autosuggestions.sh b/scripts/includes/autosuggestions.sh new file mode 100644 index 0000000..112d4bb --- /dev/null +++ b/scripts/includes/autosuggestions.sh @@ -0,0 +1 @@ +source "$SCR/../plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" diff --git a/scripts/includes/mac.sh b/scripts/includes/mac.sh index 26871ae..c0a5954 100644 --- a/scripts/includes/mac.sh +++ b/scripts/includes/mac.sh @@ -15,13 +15,4 @@ if [[ $OSTYPE == 'darwin'* ]]; then alias java16="${JDK16}/bin/java" export JAVA_HOME=${JDK11} export PATH="${JDK11}/bin:$PATH" - - # Autosuggestions - autosug="/usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh" - if [ -f $autosug ]; then - source $autosug - else - brew install zsh-autosuggestions - source $autosug - fi fi