From 9eed8c6c805a7fee9685cbabe7fda34b1bea3945 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Mon, 20 Mar 2023 14:33:01 -0700 Subject: [PATCH] Add erdtree shell completions --- base/.config/zsh/zshrc.d/base.zsh | 2 ++ base/.zshrc | 2 +- erdtree/.config/bash/bashrc.d/erdtree.sh | 1 + erdtree/.config/fish/conf.d/erdtree.fish | 1 + erdtree/.config/zsh/zshrc.d/erdtree.zsh | 4 ++++ 5 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 erdtree/.config/bash/bashrc.d/erdtree.sh create mode 100644 erdtree/.config/fish/conf.d/erdtree.fish create mode 100644 erdtree/.config/zsh/zshrc.d/erdtree.zsh diff --git a/base/.config/zsh/zshrc.d/base.zsh b/base/.config/zsh/zshrc.d/base.zsh index efdfa4d..56c4f09 100644 --- a/base/.config/zsh/zshrc.d/base.zsh +++ b/base/.config/zsh/zshrc.d/base.zsh @@ -8,6 +8,8 @@ setopt INC_APPEND_HISTORY setopt HIST_IGNORE_DUPS setopt EXTENDED_HISTORY +autoload -Uz compinit && compinit + # Use emacs keybindings even if our EDITOR is set to vi bindkey -e diff --git a/base/.zshrc b/base/.zshrc index 5fe723a..4c622a8 100644 --- a/base/.zshrc +++ b/base/.zshrc @@ -13,7 +13,7 @@ if [[ -d "${XDG_CONFIG_HOME}/zsh/zshrc.d" ]]; then for file in "${XDG_CONFIG_HOME}"/zsh/zshrc.d/*.zsh(N); do if [ -r "$file" ]; then #shellcheck disable=1090 - . "$file" + source "$file" fi done fi diff --git a/erdtree/.config/bash/bashrc.d/erdtree.sh b/erdtree/.config/bash/bashrc.d/erdtree.sh new file mode 100644 index 0000000..495397b --- /dev/null +++ b/erdtree/.config/bash/bashrc.d/erdtree.sh @@ -0,0 +1 @@ +eval "$(et --completions bash)" diff --git a/erdtree/.config/fish/conf.d/erdtree.fish b/erdtree/.config/fish/conf.d/erdtree.fish new file mode 100644 index 0000000..cca5c38 --- /dev/null +++ b/erdtree/.config/fish/conf.d/erdtree.fish @@ -0,0 +1 @@ +eval "$(et --completions fish)" diff --git a/erdtree/.config/zsh/zshrc.d/erdtree.zsh b/erdtree/.config/zsh/zshrc.d/erdtree.zsh new file mode 100644 index 0000000..8a36394 --- /dev/null +++ b/erdtree/.config/zsh/zshrc.d/erdtree.zsh @@ -0,0 +1,4 @@ +autoload -Uz compinit +compinit + +eval "$(et --completions zsh)"