Skip to content

Commit

Permalink
Update completion junk
Browse files Browse the repository at this point in the history
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
  • Loading branch information
louipc committed Jan 2, 2018
1 parent e06d08d commit f3b601e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Makefile
Expand Up @@ -6,4 +6,6 @@ install:
install -d "${DESTDIR}${PREFIX}/bin"
install -m 755 tremc "${DESTDIR}${PREFIX}/bin/tremc"
install -d "${DESTDIR}${PREFIX}/share/bash-completion/completions"
install -m 755 "completion/bash/transmission-remote-cli-bash-completion.sh" "${DESTDIR}${PREFIX}/share/bash-completion/completions/tremc"
install -m 644 "completion/bash/tremc.sh" "${DESTDIR}${PREFIX}/share/bash-completion/completions/tremc"
install -d "${DESTDIR}${PREFIX}/share/zsh/site-functions/

This comment has been minimized.

Copy link
@Earnestly

Earnestly Jan 6, 2018

Missing a terminating " here.

This comment has been minimized.

Copy link
@louipc

louipc via email Jan 6, 2018

Author Member
install -m 644 "completion/zsh/_tremc" "${DESTDIR}${PREFIX}/share/zsh/site-functions/_tremc"
@@ -1,6 +1,6 @@
# bash completion for transmission-remote-cli(1) -*- shell-script -*-
# bash completion for tremc(1) -*- shell-script -*-

_transmission-remote-cli () {
_tremc () {
local cur prev opts

_get_comp_words_by_ref cur prev
Expand All @@ -26,6 +26,6 @@ _transmission-remote-cli () {
fi
}

complete -F _transmission-remote-cli transmission-remote-cli
complete -F _tremc tremc

# ex: ts=4 sw=4 et filetype=sh
@@ -1,4 +1,4 @@
#compdef transmission-remote-cli
#compdef tremc

_arguments \
{-v,--version}'[Show version number and exit]' \
Expand Down

0 comments on commit f3b601e

Please sign in to comment.