]> arthur.barton.de Git - ax-zsh.git/commitdiff
New "travis" plugin
authorAlexander Barton <alex@barton.de>
Sun, 24 May 2020 19:13:05 +0000 (21:13 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 24 May 2020 19:13:05 +0000 (21:13 +0200)
plugins/travis/README.md [new file with mode: 0644]
plugins/travis/travis.zshrc [new file with mode: 0644]

diff --git a/plugins/travis/README.md b/plugins/travis/README.md
new file mode 100644 (file)
index 0000000..e6da0c1
--- /dev/null
@@ -0,0 +1,3 @@
+## travis
+
+Setup autocompletion for the *travis*(1), the CLI tool for Travis-CI.
diff --git a/plugins/travis/travis.zshrc b/plugins/travis/travis.zshrc
new file mode 100644 (file)
index 0000000..331ec9e
--- /dev/null
@@ -0,0 +1,9 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# travis.zshrc: Setup autocompletion for travis(1).
+
+# Make sure that "travis(1)" is installed
+(( $+commands[travis] )) || return
+
+# Does the user-local completion file exist?
+[[ -r "$HOME/.travis/travis.sh" ]] && source "$HOME/.travis/travis.sh"
+return 0