diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-10-01 11:55:23 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-10-01 11:55:23 -0400 |
commit | 6b5acbc8c00045a7926c2f295fb03ae4b0459305 (patch) | |
tree | c2df0f30d8eade2a2211b53c5a62a0bc71496045 /home-config/zsh/zsh-autosuggestions/src/fetch.zsh | |
parent | package lavanda gtk theme (diff) | |
download | dotfiles-guix-6b5acbc8c00045a7926c2f295fb03ae4b0459305.tar.gz dotfiles-guix-6b5acbc8c00045a7926c2f295fb03ae4b0459305.tar.bz2 dotfiles-guix-6b5acbc8c00045a7926c2f295fb03ae4b0459305.zip |
package zsh-autosuggestions
Diffstat (limited to 'home-config/zsh/zsh-autosuggestions/src/fetch.zsh')
-rw-r--r-- | home-config/zsh/zsh-autosuggestions/src/fetch.zsh | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/home-config/zsh/zsh-autosuggestions/src/fetch.zsh b/home-config/zsh/zsh-autosuggestions/src/fetch.zsh deleted file mode 100644 index fef2715..0000000 --- a/home-config/zsh/zsh-autosuggestions/src/fetch.zsh +++ /dev/null @@ -1,27 +0,0 @@ - -#--------------------------------------------------------------------# -# Fetch Suggestion # -#--------------------------------------------------------------------# -# Loops through all specified strategies and returns a suggestion -# from the first strategy to provide one. -# - -_zsh_autosuggest_fetch_suggestion() { - typeset -g suggestion - local -a strategies - local strategy - - # Ensure we are working with an array - strategies=(${=ZSH_AUTOSUGGEST_STRATEGY}) - - for strategy in $strategies; do - # Try to get a suggestion from this strategy - _zsh_autosuggest_strategy_$strategy "$1" - - # Ensure the suggestion matches the prefix - [[ "$suggestion" != "$1"* ]] && unset suggestion - - # Break once we've found a valid suggestion - [[ -n "$suggestion" ]] && break - done -} |