diff --git a/etc/sandmap-completion b/etc/sandmap-completion new file mode 100644 index 0000000..2fe20c2 --- /dev/null +++ b/etc/sandmap-completion @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -o emacs + +function _tab_init() { + + READLINE_LINE="" + READLINE_POINT=$(echo -en "${#READLINE_LINE}" ; echo) + +} + +bind -x '"\t":"_tab_init"' diff --git a/lib/init_cli b/lib/init_cli index 3b68150..0d04cc1 100644 --- a/lib/init_cli +++ b/lib/init_cli @@ -158,7 +158,8 @@ function init_cli() { _cmd_state="0" # shellcheck disable=SC2354 - _ansi_prompt=$(printf "\\e[1;38m%s\\e[m(\\e[0;38m%s\\e[m)\\e[4;32m»\\e[m " "${__cli_prompt}" "${__cli_banner}") + # > or » + _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