浏览代码

feat(tailscale): new tailscale plugin (#12523)

Luke Ashe-Browne 7 月之前
父节点
当前提交
e2ba73af63
共有 2 个文件被更改,包括 15 次插入0 次删除
  1. 11 0
      plugins/tailscale/README.md
  2. 4 0
      plugins/tailscale/tailscale.plugin.zsh

+ 11 - 0
plugins/tailscale/README.md

@@ -0,0 +1,11 @@
+# tailscale
+
+This plugin provides completion for [tailscale](https://tailscale.com/) (Easy software-defined networks using an implementation of wireguard).
+
+To use it, add `tailscale` to the plugins array in your zshrc file.
+
+```
+plugins=(... tailscale)
+```
+
+**Author:** [@lukeab](https://github.com/lukeab)

+ 4 - 0
plugins/tailscale/tailscale.plugin.zsh

@@ -0,0 +1,4 @@
+
+if [ $commands[tailscale] ]; then
+  source <(tailscale completion zsh)
+fi