theme/dulcie: use _command_exists

This commit is contained in:
John D Pell
2021-09-19 21:32:52 -07:00
parent eabdf41b83
commit a2e32f37c5

2
themes/dulcie/dulcie.theme.bash Normal file → Executable file
View File

@@ -77,7 +77,7 @@ dulcie_prompt() {
printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}" printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"
# Open the new terminal in the same directory # Open the new terminal in the same directory
declare -f __vte_osc7 > /dev/null && __vte_osc7 _is_function __vte_osc7 && __vte_osc7
PS1="${reset_color}[${DULCIE_USER}@${DULCIE_HOST}$(scm_prompt_info)${reset_color} ${DULCIE_WORKINGDIR}]" PS1="${reset_color}[${DULCIE_USER}@${DULCIE_HOST}$(scm_prompt_info)${reset_color} ${DULCIE_WORKINGDIR}]"
if [[ "${DULCIE_MULTILINE}" -eq "1" ]]; then if [[ "${DULCIE_MULTILINE}" -eq "1" ]]; then