From 1787b595a2c5cf6599b0d8c48f8c7a520721ab03 Mon Sep 17 00:00:00 2001 From: Aaron Johnson Date: Sat, 25 Aug 2018 20:40:33 -0500 Subject: [PATCH] Added COMPLETION_STYLE option --- example_configs/zsh.conf | 1 + setopt | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/example_configs/zsh.conf b/example_configs/zsh.conf index 5a3d980..6d756d9 100644 --- a/example_configs/zsh.conf +++ b/example_configs/zsh.conf @@ -4,6 +4,7 @@ SYNTAX_HIGHLIGHT=true #On-the-fly syntax highlighting of commands that you type # Prompt Style PROMPT_STYLE=bsd #Valid options: bsd, bsd2, ar5 +COMPLETION_STYLE=bash #ZSH "automenu" option toggle - Valid options: bash, zsh (defaults to zsh) # Example prompts: # bsd: user@host:~/storage/git[git-branch]% diff --git a/setopt b/setopt index beb35e6..ced2288 100644 --- a/setopt +++ b/setopt @@ -5,7 +5,8 @@ promptinit setopt autocd unsetopt beep setopt HIST_IGNORE_SPACE - -## BASH-style completion; comment out for full ZSH completion. -setopt noautomenu +if [ $COMPLETION_STYLE = bash ] +then + setopt noautomenu +fi