Emmanuel Bouthenot 17 лет назад
Родитель
Сommit
3755430813

+ 1 - 0
.zsh.d/config.d/alias.zsh

@@ -10,6 +10,7 @@ alias emacs="emacs -nw"
 alias e="emacs -nw"
 alias rsu="sudo zsh"
 alias zconf="source ~/.zshrc"
+alias grep="grep --color=tty"
 
 [ "$SUDO_USER" -a $UID = 0 ] && alias emacs="emacs -u $SUDO_USER -nw"
 [ "$SUDO_USER" -a $UID = 0 ] && alias e="emacs -u $SUDO_USER -nw"

+ 24 - 14
.zsh.d/config.d/options.zsh

@@ -1,18 +1,28 @@
 
 # zsh options
 
-export LISTPROMPT	# in order to scroll if completion list is too big
+export LISTPROMPT	    # in order to scroll if completion list is too big
 
-setopt auto_cd		# a command like % /usr/local is equivalent to cd /usr/local
-setopt nohup            # don't send HUP signal when closing term session
-setopt extended_glob	# in order to use #, ~ and ^ for filename generation
-setopt always_to_end	# move to cursor to the end after completion
-setopt notify		# report the status of backgrounds jobs immediately
-setopt correct		# try to correct the spelling if possible
-setopt rmstarwait	# wait 10 seconds before querying for a rm which contains a *
-setopt noflowcontrol    # disable xon/xoff
-setopt histnostore      # don't store history command in history
-setopt nobanghist       # don't care of '!' in commands
-setopt emacs            # zle in emacs mode
-setopt pushdignoredups  # ignore dups in pushd stack
-#setopt printexitvalue   # show the exit-value if > 0
+setopt auto_cd		    # a command like % /usr/local is equivalent to cd /usr/local
+setopt nohup                # don't send HUP signal when closing term session
+setopt extended_glob	    # in order to use #, ~ and ^ for filename generation
+setopt always_to_end	    # move to cursor to the end after completion
+setopt notify		    # report the status of backgrounds jobs immediately
+setopt correct		    # try to correct the spelling if possible
+setopt rmstarwait	    # wait 10 seconds before querying for a rm which contains a *
+setopt noflowcontrol        # disable xon/xoff
+setopt histnostore          # don't store history command in history
+setopt nobanghist           # don't care of '!' in commands
+setopt emacs                # zle in emacs mode
+setopt pushdignoredups      # ignore dups in pushd stack
+#setopt printexitvalue       # show the exit-value if > 0
+setopt auto_continue        # send SIGCONT to jobs disowned
+setopt auto_list            # list choice on ambiguous command
+setopt auto_pushd           # cd = pushd
+setopt pushd_ignore_dups    # ignore dups in pushd
+setopt pushd_silent         # don't print stack after push/pop
+setopt bang_hist            # yeah ! expansion (use bash !$ for example)
+setopt chase_links          # cd to a symlink is in fact cd to the true dir
+setopt ksh_option_print     # modify setopt output
+setopt long_list_jobs       # list jobs in long format
+setopt no_rm_star_wait      # dont't idle 10 seconds

+ 3 - 0
.zsh.d/config.d/shell.zsh

@@ -3,5 +3,8 @@
 
 if [ -n "$LS_COLORS" ]; then
     zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
+
+    zstyle ':completion:*:processes' command 'ps -au$USER -o pid,time,cmd|grep -v "ps -au$USER -o pid,time,cmd"'
+    zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)[ 0-9:]#([^ ]#)*=01;30=01;31=01;38'
 fi
 

+ 1 - 1
.zsh.d/os.d/FreeBSD.zsh

@@ -7,7 +7,7 @@
 # GNU ls(1) from FreeBSD ports is called gnuls(1).
 if [ -x "$(whence gnuls)" ]; then
     if [ "$TERM" != "dumb" ]; then
-	export eval $(dircolors -b)
+	eval $(gdircolors -b)
 	
 	alias ls="gnuls -h --color=auto"
 	alias l="gnuls -lh --color=auto"

+ 1 - 1
.zsh.d/os.d/Linux.zsh

@@ -4,7 +4,7 @@
 [ -r /etc/debian_version ] && source $DOTZSHDIR/os.d/Debian.zsh
 
 if [ "$TERM" != "dumb" ]; then
-    export eval $(dircolors -b)
+    [ -x =dircolors ] && eval $(dircolors -b)
     
     alias ls="ls -h --color=auto"
     alias l="ls -lh --color=auto"

+ 1 - 1
.zsh.d/os.d/OpenBSD.zsh

@@ -3,7 +3,7 @@
 
 # GNU ls(1) from OpenBSD ports is named gls(1)/gdircolors(1).
 if [ -x "$(whence gdircolors)" ]; then
-    export eval $(dircolors -b)
+    eval $(gdircolors -b)
     
     fi
     if [ "$TERM" != "dumb" ]; then

+ 1 - 1
.zsh.d/os.d/SunOS.zsh

@@ -21,7 +21,7 @@ export PATH MANPATH
 
 # GNU ls(1) from SunOS ports is called gls(1)/gdircolors(1).
 if [ -x "$(whence gdircolors)" ]; then
-    export eval $(dircolors -b)
+    eval $(gdircolors -b)
     
     if [ "$TERM" != "dumb" ]; then
 	alias ls="gls -h --color=auto"