1
0
mirror of https://github.com/akelge/vim synced 2025-08-16 15:48:40 +00:00

Modified Processing of source files

Changed prompts
Added 99-local autocreation
This commit is contained in:
2013-01-16 10:08:25 +00:00
parent 206f88890b
commit 81b5f4c020
7 changed files with 72 additions and 43 deletions

View File

@ -0,0 +1,19 @@
function prompt_minimal_setup {
# Setup PROMPT
if [ ${TERM[0,5]} = "xterm" ] || [ ${TERM} = "rxvt" ]; then
# We are on xterminal
W="%n@%m:%."
I="%m:%."
L="%B%. %#%b "
PS1="%{]2;$W%}%{]1;$I%}$L"
unset W I L
else
# We are not on xterminal
PS1="%B%. %#%b "
fi
}
prompt_minimal_setup
# vim: set ts=4 sw=4 tw=0 ft=zsh :

View File

@ -0,0 +1,19 @@
function prompt_nice_setup {
if [ ${TERM[0,5]} = "xterm" ] || [ ${TERM} = "rxvt" ]; then
W="::: %n at %m in %. :::"
I="%m::%."
L="%B%K{blue}%F{white}@%m::%2~ %f%k
%F{yellow}%#%f%b "
PS1="%{]2;$W%}%{]1;$I%}$L"
unset W I L
else
# We are not on xterminal
PS1="%B%K{blue}%F{white}[%l] %n@%m:%~ %f%k%F{yellow}%#%f%b "
fi
}
prompt_nice_setup
# vim: set ts=4 sw=4 tw=0 ft=zsh :

View File

@ -0,0 +1,19 @@
function prompt_plain_setup {
# Setup PROMPT
if [ ${TERM[0,5]} = "xterm" ] || [ ${TERM} = "rxvt" ]; then
# We are on xterminal
W="%n@%m:%."
I="%m:%."
L="%B[%l] %~ %#%b "
PS1="%{]2;$W%}%{]1;$I%}$L"
unset W I L
else
# We are not on xterminal
PS1="%B[%l] %n@%m:%~ %#%b "
fi
}
prompt_plain_setup
# vim: set ts=4 sw=4 tw=0 ft=zsh :