zshrc: Fix documentation tag for alias lsl
[grml-etc-core.git] / etc / zsh / zshrc
index 30f1550..175f32d 100644 (file)
@@ -339,7 +339,8 @@ if ls --help 2> /dev/null | grep -q GNU; then
 elif [[ $OSTYPE == freebsd* ]]; then
     ls_options=( -G )
 fi
-if grep --help 2> /dev/null | grep -q GNU; then
+if grep --help 2> /dev/null | grep -q GNU || \
+   [[ $OSTYPE == freebsd* ]]; then
     grep_options=( --color=auto )
 fi
 
@@ -2272,7 +2273,7 @@ alias lad='ls -d .*(/)'                # only show dot-directories
 alias lsa='ls -a .*(.)'                # only show dot-files
 #a2# Only files with setgid/setuid/sticky flag
 alias lss='ls -l *(s,S,t)'             # only files with setgid/setuid/sticky flag
-#a2# Only show 1st ten symlinks
+#a2# Only show symlinks
 alias lsl='ls -l *(@)'                 # only symlinks
 #a2# Display only executables
 alias lsx='ls -l *(*)'                 # only executables
@@ -2303,9 +2304,6 @@ alias rmcdir='cd ..; rmdir $OLDPWD || cd $OLDPWD'
 alias insecssh='ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"'
 alias insecscp='scp -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"'
 
-# simple webserver
-check_com -c python && alias http="python -m SimpleHTTPServer"
-
 # work around non utf8 capable software in utf environment via $LANG and luit
 if check_com isutfenv && check_com luit ; then
     if check_com -c mrxvt ; then
@@ -2418,7 +2416,7 @@ check_com new || alias new=modified
 
 # use colors when GNU grep with color-support
 #a2# Execute \kbd{grep -{}-color=auto}
-(( $#grml_options > 0 )) && alias grep='grep '${grml_options:+"${grml_options[*]} "}'
+(( $#grep_options > 0 )) && alias grep='grep '${grep_options:+"${grep_options[*]} "}
 
 # Translate DE<=>EN
 # 'translate' looks up fot a word in a file with language-to-language