From 904c67c0c6d734d89982cee306e0ff06150ea49d Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 5 Apr 2022 22:10:43 +0200 Subject: [PATCH] add nomad autocomplete --- zsh/.bashrc | 3 +++ zsh/.zshrc | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/zsh/.bashrc b/zsh/.bashrc index c35b1ee..6ec6f99 100755 --- a/zsh/.bashrc +++ b/zsh/.bashrc @@ -5,3 +5,6 @@ [ -x /usr/bin/zsh ] && exec /usr/bin/zsh source /home/vincent/.config/broot/launcher/bash/br +if [ -x /usr/bin/nomad]; then +complete -C /usr/bin/nomad nomad +fi diff --git a/zsh/.zshrc b/zsh/.zshrc index f779ab2..8395791 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -105,3 +105,8 @@ done source $ZSH/oh-my-zsh.sh source /home/vincent/.config/broot/launcher/bash/br + +autoload -U +X bashcompinit && bashcompinit +if [ -x /usr/bin/nomad ]; then + complete -o nospace -C /usr/bin/nomad nomad +fi