diff options
author | Stuart Reilly | 2018-06-21 14:02:12 +0100 |
---|---|---|
committer | Stuart Reilly | 2018-06-21 14:02:12 +0100 |
commit | 41bea4dbf3e1171a0f8f745d9d403d3b20861b79 (patch) | |
tree | ea13751cd196b78f2ef9ba64b0c0d4b3de0d6ae5 | |
parent | 5a4b72653aed0fc784e5ad7a9bbcb0d031512c6b (diff) | |
download | aur-41bea4dbf3e1171a0f8f745d9d403d3b20861b79.tar.gz |
Add support for shell completions
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -23,4 +23,17 @@ build() { package() { cd "$srcdir/${pkgname%-*}" install -Dm755 target/release/rash $pkgdir/usr/bin/rash + shell=`basename $SHELL` + case $shell in + zsh) + install -Dm644 _rash $pkgdir/usr/share/zsh/site-functions + ;; + bash) + install -Dm644 rash.bash $pkgdir`pkg-config --variable=completionsdir bash-completion` + ;; + fish) + dir=${XDG_CONFIG_HOME:-$HOME/.config} + install -Dm644 rash.fish $pkgdir$dir/fish/completions + ;; + esac } |