diff --git a/modules/prompt/functions/prompt_sorin_setup b/modules/prompt/functions/prompt_sorin_setup index e339dffe..0f323c0f 100644 --- a/modules/prompt/functions/prompt_sorin_setup +++ b/modules/prompt/functions/prompt_sorin_setup @@ -39,7 +39,8 @@ function prompt_sorin_pwd { _prompt_sorin_pwd="$MATCH" unset MATCH else - _prompt_sorin_pwd="${${${${(@j:/:M)${(@s:/:)pwd}##.#?}:h}%/}//\%/%%}/${${pwd:t}//\%/%%}" + #_prompt_sorin_pwd="${${${${(@j:/:M)${(@s:/:)pwd}##.#?}:h}%/}//\%/%%}/${${pwd:t}//\%/%%}" + _prompt_sorin_pwd="${pwd}" fi } @@ -49,7 +50,7 @@ function prompt_sorin_git_info { if [[ -s "$_prompt_sorin_precmd_async_data" ]]; then alias typeset='typeset -g' source "$_prompt_sorin_precmd_async_data" - RPROMPT+='${git_info:+${(e)git_info[status]}}' + #RPROMPT+='${git_info:+${(e)git_info[status]}}' unalias typeset fi @@ -108,7 +109,7 @@ function prompt_sorin_setup { # Set editor-info parameters. zstyle ':prezto:module:editor:info:completing' format '%B%F{7}...%f%b' - zstyle ':prezto:module:editor:info:keymap:primary' format ' %B%F{1}❯%F{3}❯%F{2}❯%f%b' + zstyle ':prezto:module:editor:info:keymap:primary' format '%B%F{1}❯%F{3}❯%F{2}❯%f%b' zstyle ':prezto:module:editor:info:keymap:primary:overwrite' format ' %F{3}♺%f' zstyle ':prezto:module:editor:info:keymap:alternate' format ' %B%F{2}❮%F{3}❮%F{1}❮%f%b' @@ -131,7 +132,8 @@ function prompt_sorin_setup { 'status' '$(coalesce "%b" "%p" "%c")%s%A%B%S%a%d%m%r%U%u' # Define prompts. - PROMPT='${SSH_TTY:+"%F{9}%n%f%F{7}@%f%F{3}%m%f "}%F{4}${_prompt_sorin_pwd}%(!. %B%F{1}#%f%b.)${editor_info[keymap]} ' + PROMPT='${SSH_TTY:+"%F{9}%n%f%F{7}@%f%F{3}%m%f "}%F{4}${_prompt_sorin_pwd} ${git_info:+${(e)git_info[status]}} +%(!. %B%F{1}#%f%b.)${editor_info[keymap]} ' RPROMPT='' SPROMPT='zsh: correct %F{1}%R%f to %F{2}%r%f [nyae]? ' } diff --git a/runcoms/zpreztorc b/runcoms/zpreztorc index 4778944c..a18e01f3 100644 --- a/runcoms/zpreztorc +++ b/runcoms/zpreztorc @@ -32,6 +32,8 @@ zstyle ':prezto:load' pmodule \ 'spectrum' \ 'utility' \ 'completion' \ + 'git' \ + 'python' \ 'prompt' # diff --git a/runcoms/zprofile b/runcoms/zprofile index d87cb3b0..9341d647 100644 --- a/runcoms/zprofile +++ b/runcoms/zprofile @@ -17,8 +17,8 @@ fi # Editors # -export EDITOR='nano' -export VISUAL='nano' +export EDITOR='vim' +export VISUAL='vim' export PAGER='less' #