aboutsummaryrefslogtreecommitdiffstats
path: root/bash_completion/kerl
diff options
context:
space:
mode:
authorsanmiguel <[email protected]>2017-02-18 14:41:11 +0100
committersanmiguel <[email protected]>2017-02-18 14:41:11 +0100
commit0adce8690bd703d08c4c1af6d19d67ab78ff8bd8 (patch)
tree75a317375e95a199101010d72e298552183be8c6 /bash_completion/kerl
parent7ec1f8e0463b99ada8cc85de098b7aa9e6ab3f04 (diff)
parent0daeaa064d20dd3f72d4df6c105deba8e24c4543 (diff)
downloadkerl-0adce8690bd703d08c4c1af6d19d67ab78ff8bd8.tar.gz
kerl-0adce8690bd703d08c4c1af6d19d67ab78ff8bd8.tar.bz2
kerl-0adce8690bd703d08c4c1af6d19d67ab78ff8bd8.zip
Merge branch 'get_active_path-cli' into enable-travis-ci
Diffstat (limited to 'bash_completion/kerl')
-rw-r--r--bash_completion/kerl9
1 files changed, 8 insertions, 1 deletions
diff --git a/bash_completion/kerl b/bash_completion/kerl
index 689463d..d620a4d 100644
--- a/bash_completion/kerl
+++ b/bash_completion/kerl
@@ -12,7 +12,7 @@ _kerl()
case $prev in
kerl)
- COMPREPLY=( $( compgen -W "build install update list delete active status" -- "$cur" ) )
+ COMPREPLY=( $( compgen -W "build install update list delete active path status" -- "$cur" ) )
;;
list)
COMPREPLY=( $( compgen -W "releases builds installations" -- "$cur" ) )
@@ -42,6 +42,13 @@ _kerl()
fi
COMPREPLY=( $( compgen -W "$BUILDS" -- "$cur") )
;;
+ path)
+ INSTALL_LIST="$HOME"/.kerl/otp_installations
+ if [ -f "$INSTALL_LIST" ]; then
+ NAMES=$(cut -d ' ' -f 2 "$INSTALL_LIST" | xargs basename)
+ fi
+ COMPREPLY=( $( compgen -W "$NAMES" -- "$cur") )
+ ;;
deploy)
if [ "$COMP_CWORD" -eq 3 ]; then
if [ -f "$HOME"/.kerl/otp_installations ]; then