Skip to content

Commit

Permalink
#62 - updated prompt, minor fixes
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 1bc40da commit 4bc295a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions etc/sandmap-completion
Original file line number Diff line number Diff line change
@@ -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"'
3 changes: 2 additions & 1 deletion lib/init_cli
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4bc295a

Please sign in to comment.