1
0
mirror of https://github.com/akelge/vim synced 2025-07-06 14:59:07 +00:00

Started personal prompt system

This commit is contained in:
2013-01-15 17:08:42 +00:00
parent 24e380c253
commit 206f88890b
5 changed files with 49 additions and 15 deletions

View File

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