Skip to content

Commit

Permalink
#62 - include completion file, updated prompt
Browse files Browse the repository at this point in the history
- signed-off-by: trimstray <[email protected]>
  • Loading branch information
trimstray committed May 23, 2018
1 parent 573504d commit 1bc40da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/init_cli
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ function init_cli() {

fi

# shellcheck disable=SC1090,SC2154
source "${_cfg}/sandmap-completion"

# shellcheck disable=SC2034
local input_array=()

Expand All @@ -155,7 +158,8 @@ function init_cli() {
_cmd_state="0"

# shellcheck disable=SC2354
printf "\\e[1;38m%s\\e[m(\\e[0;38m%s\\e[m)\\e[4;32m>\\e[m " "${__cli_prompt}" "${__cli_banner}" && read -ra input_array
_ansi_prompt=$(printf "\\e[1;38m%s\\e[m(\\e[0;38m%s\\e[m)\\e[4;32m»\\e[m " "${__cli_prompt}" "${__cli_banner}")
read -r -p "$_ansi_prompt" -e -a input_array

case ${input_array[0]} in

Expand Down

0 comments on commit 1bc40da

Please sign in to comment.