Define a defaut command to remove need for _command_exists in theme

pull/1683/head
BarbUk 2020-11-22 23:53:51 +04:00
parent 9d3f28a8cc
commit 9a519f3bbb
No known key found for this signature in database
GPG Key ID: DB301C759539E9FE
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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