From 5f7c6c98653f76d0e221844fac7b6823554cf9d8 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 11 Dec 2008 20:55:23 +0100 Subject: added some stuff --- .zshrc | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.zshrc b/.zshrc index 54cef71..417cf31 100644 --- a/.zshrc +++ b/.zshrc @@ -1,15 +1,15 @@ #----------------------------------------------------# # File: ~/.zshrc # -# Version: 0.3.4 # +# Version: 0.3.5 # # Author: Florian "Bluewind" Pritz # #----------------------------------------------------# #-------------------- # History #-------------------- -HISTFILE=~/.zsh/histfile -HISTSIZE=10000 -SAVEHIST=10000 +export HISTFILE=~/.zsh/histfile +export HISTSIZE=10000 +export SAVEHIST=10000 #-------------------- # Keybindings @@ -34,7 +34,7 @@ zstyle :compinstall filename '$HOME/.zshrc' zstyle ':completion:*' use-cache on zstyle ':completion:*' cache-path $HOME/.zsh/cache -zstyle ':completion:*' completer _complete _match _approximate _7slash +zstyle ':completion:*' completer _complete _match _approximate _7slash zstyle ':completion:*:match:*' original only # allow more mistypes if longer command @@ -75,7 +75,8 @@ setopt SHARE_HISTORY setopt NO_clobber setopt APPEND_HISTORY setopt EXTENDED_HISTORY - +setopt HIST_REDUCE_BLANKS +setopt HIST_IGNORE_SPACE #----------------------- # Variables #----------------------- @@ -161,9 +162,10 @@ alias du='du -kh' alias dus='du -skh' alias df='df -kTh' -alias ls='ls -l --color=auto -h -b -t -F' -alias ll='ls -l --color=auto -h -b -t -F' -alias la='ls -la --color=auto -h -b -t -F' +eval "`dircolors -b`" +alias ls='ls -CFhsX --color=auto' +alias ll='ls -lhbtF --color=auto' +alias la='ls -lahbtF --color=auto' alias newpkgb=' cp $HOME/misc/aur/PKGBUILD.proto PKGBUILD' alias aurball='makepkg --source -f' @@ -282,7 +284,7 @@ hglob() { echo /proc/*/cwd(:h:t:s/self//) # Analog zu >ps ax | awk '{print $1}'<" } -2html() { vim -u NONE -n -c ':syntax on' -c ':so $VIMRUNTIME/syntax/2html.vim' -c ':wqa' $1 > /dev/null 2> /dev/null } +2html() { vim -n -c ':syntax on' -c ':so $VIMRUNTIME/syntax/2html.vim' -c ':wqa' $1 > /dev/null 2> /dev/null } yd (){ mkdir $1 @@ -431,7 +433,7 @@ youtube2mp3 () { #-------------------- # Greetings #-------------------- -echo -e "${CYAN}Welcome to ZSH ${RED}${ZSH_VERSION%.*}$NC" +echo -e "${CYAN}Welcome to ZSH ${RED}${ZSH_VERSION}$NC" short_ii if [ -x /usr/bin/fortune ]; then /usr/bin/fortune -s -- cgit v1.2.3-24-g4f1b