Fixed vim and zsh
This commit is contained in:
1
zsh/modules/prompt/functions/async
Symbolic link
1
zsh/modules/prompt/functions/async
Symbolic link
@ -0,0 +1 @@
|
||||
../external-themes/pure/async.zsh
|
1
zsh/modules/prompt/functions/ext-liquidprompt
Symbolic link
1
zsh/modules/prompt/functions/ext-liquidprompt
Symbolic link
@ -0,0 +1 @@
|
||||
../external-themes/liquidprompt/liquidprompt
|
1
zsh/modules/prompt/functions/prompt_eriner_setup
Symbolic link
1
zsh/modules/prompt/functions/prompt_eriner_setup
Symbolic link
@ -0,0 +1 @@
|
||||
../themes/eriner.zsh-theme
|
1
zsh/modules/prompt/functions/prompt_gitster_setup
Symbolic link
1
zsh/modules/prompt/functions/prompt_gitster_setup
Symbolic link
@ -0,0 +1 @@
|
||||
../themes/gitster.zsh-theme
|
1
zsh/modules/prompt/functions/prompt_lean_setup
Symbolic link
1
zsh/modules/prompt/functions/prompt_lean_setup
Symbolic link
@ -0,0 +1 @@
|
||||
../external-themes/lean/prompt_lean_setup
|
13
zsh/modules/prompt/functions/prompt_liquidprompt_setup
Normal file
13
zsh/modules/prompt/functions/prompt_liquidprompt_setup
Normal 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 "$@"
|
BIN
zsh/modules/prompt/functions/prompt_liquidprompt_setup.zwc
Normal file
BIN
zsh/modules/prompt/functions/prompt_liquidprompt_setup.zwc
Normal file
Binary file not shown.
1
zsh/modules/prompt/functions/prompt_magicmace_setup
Symbolic link
1
zsh/modules/prompt/functions/prompt_magicmace_setup
Symbolic link
@ -0,0 +1 @@
|
||||
../themes/magicmace.zsh-theme
|
1
zsh/modules/prompt/functions/prompt_minimal_setup
Symbolic link
1
zsh/modules/prompt/functions/prompt_minimal_setup
Symbolic link
@ -0,0 +1 @@
|
||||
../themes/minimal.zsh-theme
|
1
zsh/modules/prompt/functions/prompt_pure_setup
Symbolic link
1
zsh/modules/prompt/functions/prompt_pure_setup
Symbolic link
@ -0,0 +1 @@
|
||||
../external-themes/pure/pure.zsh
|
1
zsh/modules/prompt/functions/prompt_steeef_setup
Symbolic link
1
zsh/modules/prompt/functions/prompt_steeef_setup
Symbolic link
@ -0,0 +1 @@
|
||||
../themes/steeef.zsh-theme
|
13
zsh/modules/prompt/functions/short_pwd
Normal file
13
zsh/modules/prompt/functions/short_pwd
Normal 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}
|
BIN
zsh/modules/prompt/functions/short_pwd.zwc
Normal file
BIN
zsh/modules/prompt/functions/short_pwd.zwc
Normal file
Binary file not shown.
Reference in New Issue
Block a user