More lint
parent
4b6f023389
commit
882f147962
|
|
@ -41,11 +41,11 @@ SCM_THEME_CURRENT_USER_PREFFIX=' '
|
|||
SCM_GIT_SHOW_CURRENT_USER=false
|
||||
|
||||
function _git-uptream-remote-logo {
|
||||
[[ "$( _git-upstream)" == "" ]] && SCM_GIT_CHAR="$SCM_GIT_CHAR_DEFAULT"
|
||||
[[ "$(_git-upstream)" == "" ]] && SCM_GIT_CHAR="$SCM_GIT_CHAR_DEFAULT"
|
||||
|
||||
local remote remote_domain
|
||||
remote=$( _git-upstream-remote)
|
||||
remote_domain=$( git config --get remote."$remote".url | awk -F'[@:.]' '{print $2}')
|
||||
remote=$(_git-upstream-remote)
|
||||
remote_domain=$(git config --get remote."$remote".url | awk -F'[@:.]' '{print $2}')
|
||||
|
||||
# remove // suffix for https:// url
|
||||
remote_domain=${remote_domain//\//}
|
||||
|
|
@ -74,7 +74,7 @@ function _exit-code {
|
|||
function _prompt {
|
||||
local exit_code="$?" wrap_char=' ' dir_color=$green ssh_info='' python_venv='' host command_duration=
|
||||
|
||||
command_duration=$( _command_duration)
|
||||
command_duration=$(_command_duration)
|
||||
|
||||
_exit-code exit_code
|
||||
_git-uptream-remote-logo
|
||||
|
|
@ -103,7 +103,7 @@ function _prompt {
|
|||
python_venv="$PYTHON_VENV_CHAR$( basename "${VIRTUAL_ENV}") "
|
||||
fi
|
||||
|
||||
PS1="\\n${ssh_info} ${purple}$( scm_char)${python_venv}${dir_color}\\w${normal}$(scm_prompt_info)${command_duration}${exit_code}"
|
||||
PS1="\\n${ssh_info} ${purple}$(scm_char)${python_venv}${dir_color}\\w${normal}$(scm_prompt_info)${command_duration}${exit_code}"
|
||||
[[ ${#PS1} -gt $((COLUMNS * 2)) ]] && wrap_char="\\n"
|
||||
PS1="${PS1}${wrap_char}❯${normal} "
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue