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

Added function fancyTerm that checks if we are on a "fancy" terminal

Changed prompt management to take in account "screen"
This commit is contained in:
2014-03-03 11:26:12 +00:00
parent 1dae364411
commit b45d13450a
6 changed files with 11 additions and 6 deletions

View File

@ -1,6 +1,6 @@
function prompt_minimal_setup {
# Setup PROMPT
if [ ${TERM[0,5]} = "xterm" ] || [ ${TERM} = "rxvt" ]; then
if `fancyTerm`; then
# We are on xterminal
W="%n@%m:%."
I="%m:%."

View File

@ -1,6 +1,5 @@
function prompt_nice_setup {
if [ ${TERM[0,5]} = "xterm" ] || [ ${TERM} = "rxvt" ]; then
if `fancyTerm`; then
W="::: %n at %m in %. :::"
I="%m::%."
L="%B%K{blue}%F{white}@%m::%2~ %f%k

View File

@ -1,6 +1,6 @@
function prompt_plain_setup {
# Setup PROMPT
if [ ${TERM[0,5]} = "xterm" ] || [ ${TERM} = "rxvt" ]; then
if `fancyTerm`; then
# We are on xterminal
W="%n@%m:%."
I="%m:%."

View File

@ -1,6 +1,6 @@
function prompt_server_setup {
# Setup PROMPT
if [ ${TERM[0,5]} = "xterm" ] || [ ${TERM} = "rxvt" ]; then
if `fancyTerm`; then
# We are on xterminal
W="%n@%m:%."
I="%m:%."