From b01ec497ee2014ab9a95d1e745cf41347f3c856c Mon Sep 17 00:00:00 2001 From: James Walker Date: Wed, 29 Jul 2020 22:21:01 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20add=20zsh=20autosuggestions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/.Brewfile | 1 + home/.zshrc | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/home/.Brewfile b/home/.Brewfile index ab65ec8..d1af0b3 100644 --- a/home/.Brewfile +++ b/home/.Brewfile @@ -37,6 +37,7 @@ brew 'ssh-copy-id' brew 'tmux' brew 'wget' brew 'zlib' +brew 'zsh-autosuggestions' # casks cask '1password' cask 'adoptopenjdk8' diff --git a/home/.zshrc b/home/.zshrc index f1732e2..436b1fe 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -56,6 +56,12 @@ if [ -d ~/Library/Android/sdk ]; then export PATH=~/Library/Android/sdk/platform-tools:$PATH fi +# zsh autosuggestions +zsh_autosuggestions=$(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh +if [ -f $zsh_autosuggestions ]; then + source $zsh_autosuggestions +fi + if [ $TERM = "screen" ]; then export DISABLE_AUTO_TITLE="true" fi