1
0
Fork 0

Add zsh-autosuggestions
the build failed Details

main
Ambrose Chua 2018-09-22 20:43:47 +08:00
parent 62bd7d3215
commit 96a549b6df
3 changed files with 24 additions and 0 deletions

View File

@ -21,6 +21,7 @@ RUN ./.install/zsh.sh
RUN ./.install/neovim.sh
# shell config, env manager
RUN ./.install/pure.sh
RUN ./.install/zsh-autosuggestions.sh
RUN ./.install/thefuck.sh
RUN ./.install/yadm.sh
# languages

View File

@ -0,0 +1,17 @@
#!/bin/sh
set -e
source ./.versions
echo
echo "Installing zsh-autosuggestions..."
echo
apk add --no-cache --virtual .build-deps \
git
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
cd ~/.zsh/zsh-autosuggestions
git checkout v0.4.3
apk del .build-deps

6
.zshrc
View File

@ -17,10 +17,16 @@ setopt auto_cd
setopt interactivecomments
setopt extended_glob
# editor
export EDITOR=nvim
# pure
autoload -U promptinit; promptinit
prompt pure
# autosuggestions
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
# thefuck
eval $(thefuck --alias nope)