Define a defaut command to remove need for _command_exists in theme
parent
9d3f28a8cc
commit
9a519f3bbb
|
|
@ -74,9 +74,7 @@ function _exit-code {
|
|||
function _prompt {
|
||||
local exit_code="$?" wrap_char=' ' dir_color=$green ssh_info='' python_venv='' host command_duration=
|
||||
|
||||
if _command_exists _command_duration; then
|
||||
command_duration=$(_command_duration)
|
||||
fi
|
||||
command_duration=$(_command_duration)
|
||||
|
||||
_exit-code exit_code
|
||||
_git-uptream-remote-logo
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ -z "$BASH_IT_COMMAND_DURATION" ] || [ "$BASH_IT_COMMAND_DURATION" != true ]; then
|
||||
_command_duration() {
|
||||
echo -n
|
||||
}
|
||||
return
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue