mirror of https://github.com/akelge/zsh
updated config
This commit is contained in:
parent
275c4a7bbf
commit
f42869f496
|
@ -1,14 +1,10 @@
|
|||
setopt ALWAYS_TO_END
|
||||
setopt APPEND_HISTORY
|
||||
setopt AUTO_CD
|
||||
setopt ALL_EXPORT
|
||||
setopt AUTO_MENU
|
||||
setopt AUTO_LIST
|
||||
setopt AUTONAMEDIRS
|
||||
setopt AUTO_PARAM_SLASH
|
||||
setopt AUTO_REMOVE_SLASH
|
||||
setopt AUTO_RESUME
|
||||
# setopt CDABLE_VARS
|
||||
setopt CDABLE_VARS
|
||||
setopt CORRECT
|
||||
setopt FUNCTION_ARGZERO
|
||||
setopt HIST_IGNORE_ALL_DUPS
|
||||
|
@ -16,11 +12,13 @@ setopt HIST_NO_STORE
|
|||
setopt HIST_REDUCE_BLANKS
|
||||
setopt LIST_TYPES
|
||||
setopt LONG_LIST_JOBS
|
||||
# setopt MENU_COMPLETE
|
||||
# setopt NO_AUTOLIST
|
||||
setopt NO_BEEP
|
||||
setopt NOHUP
|
||||
setopt no_BEEP
|
||||
setopt no_HUP
|
||||
setopt NOTIFY
|
||||
setopt PATH_DIRS
|
||||
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
|
||||
|
|
|
@ -1,19 +1,21 @@
|
|||
#######################################################################################
|
||||
# Start autocomplete
|
||||
autoload -U compinit; compinit
|
||||
# autoload -U compsys;
|
||||
# compctl -g "*(-/)" + -g ".*(-/)" cd
|
||||
# autoload -U compinit; compinit
|
||||
autoload -U compsys;
|
||||
compctl -g "*(-/)" + -g ".*(-/)" cd
|
||||
|
||||
# allow approximate
|
||||
zstyle ':completion:*' completer _complete _match _approximate
|
||||
zstyle ':completion:*:match:*' original only
|
||||
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:*' force-list always
|
||||
|
||||
# cd not select parent dir
|
||||
# # cd not select parent dir
|
||||
zstyle ':completion:*:cd:*' ignore-parents parent pwd
|
||||
|
||||
# compctl -g "*(-/)" + -g ".*(-/)" cd
|
||||
#
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
||||
|
|
|
@ -12,7 +12,7 @@ alias cls='clear'
|
|||
|
||||
alias dc=cd
|
||||
alias les=less
|
||||
alias fu='sudo -s $( fc -ln -1)'
|
||||
alias fu='sudo $(fc -ln -1)'
|
||||
|
||||
alias mkdir='mkdir -p'
|
||||
alias zap='rm -rf'
|
||||
|
|
|
@ -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
|
||||
READNULLCMD=/usr/bin/less
|
||||
PAGER=/usr/bin/less
|
||||
|
||||
export LESS
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
||||
|
|
|
@ -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 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 :
|
||||
|
|
|
@ -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 :
|
|
@ -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
|
|
@ -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 :
|
|
@ -1,4 +1,8 @@
|
|||
# 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 :
|
||||
|
|
Loading…
Reference in New Issue