From a62114c91f2070c8c8453d117f3d81dc113e41ff Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Mon, 25 Mar 2024 16:43:09 +0530 Subject: dotfile update --- zsh/oh-my-zsh/plugins/lxd/README.md | 9 --------- zsh/oh-my-zsh/plugins/lxd/lxd.plugin.zsh | 26 -------------------------- 2 files changed, 35 deletions(-) delete mode 100644 zsh/oh-my-zsh/plugins/lxd/README.md delete mode 100644 zsh/oh-my-zsh/plugins/lxd/lxd.plugin.zsh (limited to 'zsh/oh-my-zsh/plugins/lxd') diff --git a/zsh/oh-my-zsh/plugins/lxd/README.md b/zsh/oh-my-zsh/plugins/lxd/README.md deleted file mode 100644 index cea45e3..0000000 --- a/zsh/oh-my-zsh/plugins/lxd/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# lxd - -This plugin provides completion for [lxd](https://linuxcontainers.org/lxd/), as well as aliases -for frequent lxc commands. - -To use it add `lxd` to the plugins array in your zshrc file. - -```zsh -plugins=(... lxd) diff --git a/zsh/oh-my-zsh/plugins/lxd/lxd.plugin.zsh b/zsh/oh-my-zsh/plugins/lxd/lxd.plugin.zsh deleted file mode 100644 index a6a0742..0000000 --- a/zsh/oh-my-zsh/plugins/lxd/lxd.plugin.zsh +++ /dev/null @@ -1,26 +0,0 @@ -_lxc_get_command_list () { - $_comp_command1 | sed "1,/Available Commands/d" | awk '/^[ \t]*[a-z]+/ { print $1 }' -} - -_lxc_get_subcommand_list () { - $_comp_command1 ${words[2]} | sed "1,/Available Commands/d" | awk '/^[ \t]*[a-z]+/ { print $1 }' -} - -_lxc () { - local curcontext="$curcontext" state line - typeset -A opt_args - _arguments \ - '1: :->command'\ - '*: :->args' - - case $state in - command) - compadd $(_lxc_get_command_list) - ;; - *) - compadd $(_lxc_get_subcommand_list) - ;; - esac -} - -compdef _lxc lxc -- cgit v1.2.3-59-g8ed1b