From 86e4fd9198cc5e7ed75371f1811af0cff5df0b84 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Thu, 26 Jan 2023 22:24:42 +0100 Subject: [PATCH] zsh: add sapling completion --- .zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.zshrc b/.zshrc index b3b018e..430bd07 100644 --- a/.zshrc +++ b/.zshrc @@ -188,6 +188,12 @@ if [ ! -f "${fpath[1]}/_bazel" ]; then curl -sLo "${fpath[1]}/_bazel" https://raw.githubusercontent.com/bazelbuild/bazel/master/scripts/zsh_completion/_bazel fi +## sapling +if [ ! -f "${fpath[1]}/_sl" ]; then + # See: https://github.com/facebook/sapling/pull/369 + curl -sLo "${fpath[1]}/_sl" https://github.com/facebook/sapling/raw/d6157db1ebc0868cf70805756e32541bd681bac2/eden/scm/contrib/zsh_completion_sl +fi + ## Tekton cli if [ ! -f "${fpath[1]}/_tkn" ]; then command -v tkn >/dev/null 2>&1 && tkn completion zsh > "${fpath[1]}/_tkn"