echo $cmd | read first rest if [[ "$cmd" == "vim" ]]; then title="$rest" else title="$cmd" fi;