Add default value and test if command exists
parent
28ac02b05d
commit
4f1060b7cc
|
|
@ -68,9 +68,11 @@ function _exit-code {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _prompt {
|
function _prompt {
|
||||||
local exit_code="$?" wrap_char=' ' dir_color=$green ssh_info='' python_venv='' host command_duration
|
local exit_code="$?" wrap_char=' ' dir_color=$green ssh_info='' python_venv='' host command_duration=
|
||||||
|
|
||||||
command_duration=$(_command_duration)
|
if _command_exists _command_duration; then
|
||||||
|
command_duration=$(_command_duration)
|
||||||
|
fi
|
||||||
|
|
||||||
_exit-code exit_code
|
_exit-code exit_code
|
||||||
_git-uptream-remote-logo
|
_git-uptream-remote-logo
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue