1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 05:49:26 +00:00

[general] Miscellaneous cleanup and formatting

This commit is contained in:
Indrajit Raychaudhuri
2017-08-04 12:54:19 -05:00
parent 7b5196ca66
commit a60499f933
11 changed files with 18 additions and 19 deletions

View File

@ -74,7 +74,7 @@ function prompt_sorin_precmd {
# Handle updating git data. We also clear the git prompt data if we're in a
# different git root now.
if (( $+functions[git-dir] )); then
local new_git_root="$(git-dir 2>/dev/null)"
local new_git_root="$(git-dir 2> /dev/null)"
if [[ $new_git_root != $_sorin_cur_git_root ]]; then
_prompt_sorin_git=''
_sorin_cur_git_root=$new_git_root
@ -142,7 +142,7 @@ function prompt_sorin_preview {
local +h RPROMPT=''
local +h SPROMPT=''
editor-info 2>/dev/null
editor-info 2> /dev/null
prompt_preview_theme 'sorin'
}