MakePrompt(){ input="$1" red="\e[31m" res="\e[0m" def_prompt="cmd: " prompt="${red}${def_prompt}${res}" prompt="$(echo -e "$prompt")" read -p "$prompt" -e -i "$*"; eval "$REPLY"; }
set editing-mode vi $if mode=vi set keymap vi-cmmand "\C-m": "" "\C-m": "I \eIMakePrompt\C-m" $endif
MakePrompt(){ read -p "hello: " -e -i "$*"; eval "$REPLY"; }
export PS1='\[\e[31m\]\u@\h:\w\[\e[0m\] ' MakePrompt(){ read -p "$PS1" -e -i "$*"; eval "$REPLY"; }