From 255a2768db2eda6ee473775b39f230327e7b5028 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 18 Sep 2021 12:42:06 -0400 Subject: [PATCH] [+] Add autosuggestions for macos --- scripts/includes/mac.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/includes/mac.sh b/scripts/includes/mac.sh index c0a5954..26871ae 100644 --- a/scripts/includes/mac.sh +++ b/scripts/includes/mac.sh @@ -15,4 +15,13 @@ 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