updated config

This commit is contained in:
simonec 2011-04-13 14:13:13 +00:00
parent 275c4a7bbf
commit f42869f496
10 changed files with 65 additions and 18 deletions

View File

@ -1,14 +1,10 @@
setopt ALWAYS_TO_END setopt ALWAYS_TO_END
setopt APPEND_HISTORY setopt APPEND_HISTORY
setopt AUTO_CD
setopt ALL_EXPORT
setopt AUTO_MENU
setopt AUTO_LIST
setopt AUTONAMEDIRS setopt AUTONAMEDIRS
setopt AUTO_PARAM_SLASH setopt AUTO_PARAM_SLASH
setopt AUTO_REMOVE_SLASH setopt AUTO_REMOVE_SLASH
setopt AUTO_RESUME setopt AUTO_RESUME
# setopt CDABLE_VARS setopt CDABLE_VARS
setopt CORRECT setopt CORRECT
setopt FUNCTION_ARGZERO setopt FUNCTION_ARGZERO
setopt HIST_IGNORE_ALL_DUPS setopt HIST_IGNORE_ALL_DUPS
@ -16,11 +12,13 @@ setopt HIST_NO_STORE
setopt HIST_REDUCE_BLANKS setopt HIST_REDUCE_BLANKS
setopt LIST_TYPES setopt LIST_TYPES
setopt LONG_LIST_JOBS setopt LONG_LIST_JOBS
# setopt MENU_COMPLETE setopt no_BEEP
# setopt NO_AUTOLIST setopt no_HUP
setopt NO_BEEP
setopt NOHUP
setopt NOTIFY setopt NOTIFY
setopt PATH_DIRS setopt PATH_DIRS
setopt SHORT_LOOPS setopt SHORT_LOOPS
# vim: set ts=4 sw=4 tw=0 ft=zsh :
setopt AUTO_CD
setopt AUTO_MENU
setopt no_MENU_COMPLETE
setopt AUTO_LIST

View File

@ -1,19 +1,21 @@
####################################################################################### #######################################################################################
# Start autocomplete # Start autocomplete
autoload -U compinit; compinit # autoload -U compinit; compinit
# autoload -U compsys; autoload -U compsys;
# compctl -g "*(-/)" + -g ".*(-/)" cd compctl -g "*(-/)" + -g ".*(-/)" cd
# allow approximate # allow approximate
zstyle ':completion:*' completer _complete _match _approximate zstyle ':completion:*' completer _complete _match _approximate
zstyle ':completion:*:match:*' original only zstyle ':completion:*:match:*' original only
zstyle ':completion:*:approximate:*' max-errors 1 numeric zstyle ':completion:*:approximate:*' max-errors 1 numeric
# tab completion for PID :D # # tab completion for PID :D
zstyle ':completion:*:*:kill:*' menu yes select zstyle ':completion:*:*:kill:*' menu yes select
zstyle ':completion:*:kill:*' force-list always zstyle ':completion:*:kill:*' force-list always
# cd not select parent dir # # cd not select parent dir
zstyle ':completion:*:cd:*' ignore-parents parent pwd zstyle ':completion:*:cd:*' ignore-parents parent pwd
# compctl -g "*(-/)" + -g ".*(-/)" cd
#
# vim: set ts=4 sw=4 tw=0 ft=zsh : # vim: set ts=4 sw=4 tw=0 ft=zsh :

View File

@ -12,7 +12,7 @@ alias cls='clear'
alias dc=cd alias dc=cd
alias les=less alias les=less
alias fu='sudo -s $( fc -ln -1)' alias fu='sudo $(fc -ln -1)'
alias mkdir='mkdir -p' alias mkdir='mkdir -p'
alias zap='rm -rf' alias zap='rm -rf'

View File

@ -19,4 +19,6 @@ LESS="-c -x4 -R -MM -PMFile\:?f%f:STDIN. ?BSize\:?B%B:Unk.?B\:?pb%pb\%:Unk.?B\:%
LESSCHARSET=utf-8 LESSCHARSET=utf-8
READNULLCMD=/usr/bin/less READNULLCMD=/usr/bin/less
PAGER=/usr/bin/less PAGER=/usr/bin/less
export LESS
# vim: set ts=4 sw=4 tw=0 ft=zsh : # vim: set ts=4 sw=4 tw=0 ft=zsh :

View File

@ -8,4 +8,7 @@ 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 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 ipython='ipython-2.6 '
alias vim='/Applications/MacVim.app/Contents/MacOS/Vim'
alias mvim='mvim --remote-tab-silent '
# vim: set ts=4 sw=4 tw=0 ft=zsh : # vim: set ts=4 sw=4 tw=0 ft=zsh :

View File

@ -0,0 +1,6 @@
# Mac Ports
if [ -f /opt/local/etc/init.sh ]; then
source /opt/local/etc/init.sh
fi
# vim: set ts=4 sw=4 tw=0 ft=zsh :

View File

@ -0,0 +1,13 @@
# Core Utils woth Brew
#
ver=`brew info coreutils 2>/dev/null| head -1|cut -d" " -f2`
[ "$ver" = "" -o "$ver" = "No" ] && return 1
if [ -f /etc/zsh/gdircolors ]; then
eval `gdircolors /etc/zsh/gdircolors`
else
eval `gdircolors`
fi
source /usr/local/Cellar/coreutils/$ver/aliases
#alias ls='ls -F -G' # We use OSX ls 'cause it shows extended attrs

View File

@ -0,0 +1,19 @@
# Core Utils
which gcp > /dev/null
if [ $? -eq 0 ]; then
if [ -f /etc/zsh/gdircolors ]; then
eval `gdircolors /etc/zsh/gdircolors`
else
eval `gdircolors`
fi
#alias ls='gls --color -F' # OSX ls is better (supports extended attributes)
alias ll='ls -l'
alias la='ls -a'
alias cp='gcp'
alias mv='gmv'
alias rm='grm'
alias du='gdu'
alias df='gdf -a'
fi
# vim: set ts=4 sw=4 tw=0 ft=zsh :

View File

@ -1,4 +1,8 @@
# Linux # Linux
eval `dircolors` if [ -f /etc/dir_colors ]; then
eval `dircolors /etc/dir_colors`
else
eval `dircolors`
fi
# vim: set ts=4 sw=4 tw=0 ft=zsh : # vim: set ts=4 sw=4 tw=0 ft=zsh :

View File

@ -12,7 +12,7 @@ KERNLIB="${LIBRARY}/${KERNEL}"
function loadRC { function loadRC {
if [ -d $1 ]; then if [ -d $1 ]; then
for zshFile in $1/*; do for zshFile in $1/*[^~]; do
. $zshFile . $zshFile
done done
fi fi