mirror of
				https://github.com/akelge/vim
				synced 2025-11-04 07:24:23 +00:00 
			
		
		
		
	Light changes to prompt
files with .off extension are ignored Disabled coreutils and dsFunctions on Darwin
This commit is contained in:
		@ -1,3 +1,5 @@
 | 
			
		||||
setopt ALL_EXPORT
 | 
			
		||||
 | 
			
		||||
setopt ALWAYS_TO_END
 | 
			
		||||
setopt APPEND_HISTORY
 | 
			
		||||
setopt AUTONAMEDIRS
 | 
			
		||||
@ -12,13 +14,18 @@ setopt HIST_NO_STORE
 | 
			
		||||
setopt HIST_REDUCE_BLANKS
 | 
			
		||||
setopt LIST_TYPES
 | 
			
		||||
setopt LONG_LIST_JOBS
 | 
			
		||||
 | 
			
		||||
setopt no_BEEP
 | 
			
		||||
setopt no_HUP
 | 
			
		||||
setopt NOTIFY
 | 
			
		||||
setopt PATH_DIRS
 | 
			
		||||
setopt SHORT_LOOPS
 | 
			
		||||
 | 
			
		||||
setopt prompt_subst
 | 
			
		||||
 | 
			
		||||
setopt AUTO_CD
 | 
			
		||||
setopt AUTO_MENU
 | 
			
		||||
setopt no_MENU_COMPLETE
 | 
			
		||||
setopt AUTO_LIST
 | 
			
		||||
 | 
			
		||||
#  vim: set ts=4 sw=4 tw=0 ft=zsh : 
 | 
			
		||||
 | 
			
		||||
@ -3,9 +3,6 @@
 | 
			
		||||
 | 
			
		||||
## Vars used always
 | 
			
		||||
PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/sbin:/sbin:$HOME/bin:."
 | 
			
		||||
SAVEHIST=500
 | 
			
		||||
HISTFILE=~/.history
 | 
			
		||||
HISTSIZE=10000
 | 
			
		||||
LANG="it_IT.UTF-8"
 | 
			
		||||
TZ='Europe/Rome'
 | 
			
		||||
MIBS=all
 | 
			
		||||
@ -15,15 +12,21 @@ LOGD=/var/log
 | 
			
		||||
[ -z "$PS1" ] && return
 | 
			
		||||
 | 
			
		||||
## Vars only for interactive sessions
 | 
			
		||||
SAVEHIST=500
 | 
			
		||||
HISTFILE=~/.history
 | 
			
		||||
HISTSIZE=10000
 | 
			
		||||
 | 
			
		||||
PYTHONSTARTUP=~/.pythonrc.py
 | 
			
		||||
LOGCHECK=30
 | 
			
		||||
REPORTTIME=15
 | 
			
		||||
WATCH=notme
 | 
			
		||||
WATCHFMT="%n %a %l (%m) at %t."
 | 
			
		||||
 | 
			
		||||
# Hack for svn
 | 
			
		||||
EDITOR=vim
 | 
			
		||||
VISUAL=vim
 | 
			
		||||
#
 | 
			
		||||
# Hack for svn
 | 
			
		||||
# export SVN_EDITOR=${VISUAL}
 | 
			
		||||
 | 
			
		||||
# Set umask to collaborative mode
 | 
			
		||||
umask 002
 | 
			
		||||
 | 
			
		||||
@ -8,7 +8,4 @@ bindkey  "\eOA" history-search-backward
 | 
			
		||||
bindkey  "\eOB" history-search-forward
 | 
			
		||||
bindkey  "\e[A" history-search-backward
 | 
			
		||||
bindkey  "\e[B" history-search-forward
 | 
			
		||||
bindkey "\e[5D" backward-word
 | 
			
		||||
bindkey "\e[5C" forward-word
 | 
			
		||||
bindkey "" vi-backward-kill-word
 | 
			
		||||
#  vim: set ts=4 sw=4 tw=0 ft=zsh : 
 | 
			
		||||
 | 
			
		||||
@ -7,7 +7,9 @@ fi
 | 
			
		||||
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do
 | 
			
		||||
    eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}'
 | 
			
		||||
    eval PR_LIGHT_$color='%{$fg[${(L)color}]%}'
 | 
			
		||||
    (( count = $count + 1 ))
 | 
			
		||||
    # (( count = $count + 1 ))
 | 
			
		||||
done
 | 
			
		||||
PR_NO_COLOR="%{$terminfo[sgr0]%}"
 | 
			
		||||
 | 
			
		||||
unset color
 | 
			
		||||
#  vim: set ts=4 sw=4 tw=0 ft=zsh : 
 | 
			
		||||
@ -2,7 +2,12 @@
 | 
			
		||||
# Setup PROMPT
 | 
			
		||||
if [ ${TERM[0,5]} = "xterm" ] || [ ${TERM} = "rxvt" ]; then
 | 
			
		||||
  # We are on xterminal
 | 
			
		||||
  PS1="%{]2;%n@%m:%.%}%{]1; %m:%. %}%B<%l> %~ %#%b "
 | 
			
		||||
  W="%{]2;::: %n at %m in %. :::%}"
 | 
			
		||||
  I="%{]1;%m::%.%}"
 | 
			
		||||
  L="%B${PR_BLUE}%3~ %#%b "
 | 
			
		||||
  PS1="$W$I$L"
 | 
			
		||||
  unset W I L
 | 
			
		||||
 | 
			
		||||
else
 | 
			
		||||
  # We are not on xterminal
 | 
			
		||||
  PS1="%B[%l] %n@%m:%~ %#%b "
 | 
			
		||||
 | 
			
		||||
@ -1,14 +1,13 @@
 | 
			
		||||
# Darwin/OSX
 | 
			
		||||
# Environment and aliases for OSX
 | 
			
		||||
export LSCOLORS="GxgxcxdxCxegedabagacad"
 | 
			
		||||
alias aquamacs='open -a Aquamacs\ Emacs'
 | 
			
		||||
alias ldd='otool -L'
 | 
			
		||||
alias ls='ls -F -G'
 | 
			
		||||
alias skill=killall
 | 
			
		||||
alias lsrebuild='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user'
 | 
			
		||||
alias ipython='ipython-2.6 '
 | 
			
		||||
 | 
			
		||||
alias vim='/Applications/MacVim.app/Contents/MacOS/Vim'
 | 
			
		||||
alias mvim='mvim --remote-tab-silent '
 | 
			
		||||
# alias mvim='mvim --remote-tab-silent '
 | 
			
		||||
alias mvim='open -a MacVim '
 | 
			
		||||
 | 
			
		||||
#  vim: set ts=4 sw=4 tw=0 ft=zsh : 
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user