Fixed vim and zsh

This commit is contained in:
2018-04-05 13:06:54 +02:00
parent f9db886bd3
commit 0331f6518a
2009 changed files with 256303 additions and 0 deletions

View File

@ -0,0 +1 @@
../external-themes/pure/async.zsh

View File

@ -0,0 +1 @@
../external-themes/liquidprompt/liquidprompt

View File

@ -0,0 +1 @@
../themes/eriner.zsh-theme

View File

@ -0,0 +1 @@
../themes/gitster.zsh-theme

View File

@ -0,0 +1 @@
../external-themes/lean/prompt_lean_setup

View File

@ -0,0 +1,13 @@
prompt_liquidprompt_setup() {
autoload -Uz ex-liquidprompt
ext-liquidprompt
prompt_opts=(cr subst percent)
}
prompt_liquidprompt_preview() {
_lp_set_prompt
prompt_preview_theme liquidprompt
}
prompt_liquidprompt_setup "$@"

View File

@ -0,0 +1 @@
../themes/magicmace.zsh-theme

View File

@ -0,0 +1 @@
../themes/minimal.zsh-theme

View File

@ -0,0 +1 @@
../external-themes/pure/pure.zsh

View File

@ -0,0 +1 @@
../themes/steeef.zsh-theme

View File

@ -0,0 +1,13 @@
# shortens the pwd for use in prompt
local current_dir="${1:-${PWD}}"
local return_dir='~'
current_dir="${current_dir/#${HOME}/~}"
# if we aren't in ~
if [[ ${current_dir} != '~' ]]; then
return_dir="${${${${(@j:/:M)${(@s:/:)current_dir}##.#?}:h}%/}//\%/%%}/${${current_dir:t}//\%/%%}"
fi
print ${return_dir}

Binary file not shown.