1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-14 09:51:41 +00:00

Fix for dumb terminals like Vim's.

This commit is contained in:
Sorin Ionescu
2011-02-27 10:13:57 -05:00
parent 3a444ea70a
commit deab2ed376
8 changed files with 20 additions and 15 deletions

View File

@ -1,4 +1,5 @@
# fixme - the load process here seems a bit bizarre
[[ "$TERM" == "dumb" ]] && return
unsetopt menu_complete # do not autoselect the first completion entry
unsetopt flowcontrol

View File

@ -1,6 +1,4 @@
#
# Color grep results
# Examples: http://rubyurl.com/ZXv
#
export GREP_OPTIONS='--color=auto'
export GREP_COLOR='1;32'
if [[ "$DISABLE_COLOR" != "true" ]]; then
[[ -z "$GREP_OPTIONS" ]] && export GREP_OPTIONS='--color=auto'
[[ -z "$GREP_COLOR" ]] && export GREP_COLOR='1;32'
fi

View File

@ -9,5 +9,5 @@ bindkey "^[m" copy-prev-shell-word
setopt long_list_jobs
## pager
export PAGER=less
export LC_CTYPE=en_US.UTF-8
[[ -z "$PAGER" ]] && export PAGER=less
[[ -z "$LC_CTYPE" ]] && export LC_CTYPE=en_US.UTF-8

View File

@ -1,3 +1,5 @@
[[ "$TERM" == "dumb" ]] && return
#usage: title short_tab_title looooooooooooooooooooooggggggg_windows_title
#http://www.faqs.org/docs/Linux-mini/Xterm-Title.html#ss3.1
#Fully support screen, iterm, and probably most modern xterm and rxvt

View File

@ -1,10 +1,9 @@
# ls colors
autoload colors; colors;
export LSCOLORS="Gxfxcxdxbxegedabagacad"
#export LS_COLORS
[[ -z "$LSCOLORS" ]] && export LSCOLORS="Gxfxcxdxbxegedabagacad"
# Enable ls colors
if [ "$DISABLE_LS_COLORS" != "true" ]
if [ "$DISABLE_COLOR" != "true" ]
then
# Find the option for using colors in ls, depending on the version: Linux or BSD
ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G'