mirror of https://github.com/akelge/vim
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:
parent
1dae364411
commit
b45d13450a
|
@ -15,5 +15,9 @@ autoload -U dust
|
|||
|
||||
# bak - remove backup files
|
||||
autoload -U bak
|
||||
#
|
||||
# fancyTerm - returns true if we are on xterm/rxvt/screen, elsewhere false
|
||||
autoload -U fancyTerm
|
||||
|
||||
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
||||
|
|
|
@ -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:%."
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:%."
|
||||
|
|
|
@ -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:%."
|
||||
|
|
Loading…
Reference in New Issue