]> arthur.barton.de Git - ax-zsh.git/blob - plugins/zsh-autosuggestions/zsh-autosuggestions.zshrc
Fix handling of legacy terminal types
[ax-zsh.git] / plugins / zsh-autosuggestions / zsh-autosuggestions.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # zsh-autosuggestions.zshrc: Initialize "Fish-like autosuggestions for zsh"
3
4 axzsh_is_modern_terminal || return 91
5
6 for script (
7         "/usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh"
8         "/usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh"
9 ); do
10         if [[ -r "$script" ]]; then
11                 source "$script"
12                 unset script
13                 return 0
14         fi
15 done
16 unset script
17 return 1