diff options
author | Mark Allen <[email protected]> | 2017-02-20 15:17:52 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2017-02-20 15:17:52 -0600 |
commit | 485323434eb3992dacb6442177a7d848b82af113 (patch) | |
tree | 602f163f7ead50cf5795302136d07767e907d1dc /bash_completion/kerl | |
parent | 69579330e765ff2a97e75d04ba0a4d0ebedf23d0 (diff) | |
parent | 23acfaba005c2dade4c80ccdb98fd27fab95ea9a (diff) | |
download | kerl-485323434eb3992dacb6442177a7d848b82af113.tar.gz kerl-485323434eb3992dacb6442177a7d848b82af113.tar.bz2 kerl-485323434eb3992dacb6442177a7d848b82af113.zip |
Merge pull request #183 from kerl/enable-travis-ci
Enable travis-CI, add 'kerl path' subcommand
Diffstat (limited to 'bash_completion/kerl')
-rw-r--r-- | bash_completion/kerl | 9 |
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 |