Config

From digital-bit.ch's wiki
Jump to: navigation, search
autoload zmv
autoload zargs
autoload colors zsh/terminfo

setopt   notify pushdtohome autolist
setopt   longlistjobs share_history  inc_append_history 
setopt   autoresume hist_ignore_all_dups pushdsilent NO_BG_NICE
setopt   autopushd pushdminus extendedglob rcquotes mailwarning 

setopt transient_rprompt
setopt RM_STAR_SILENT
setopt HIST_REDUCE_BLANKS # schoenere History ;)
setopt NO_HIST_BEEP
setopt MULTIOS

setopt NO_beep
setopt NO_check_jobs        # don't notify re: jobs when shell exits
setopt NO_hup
setopt NO_nullglob
setopt NO_singlelinezle
setopt always_last_prompt   # req'd by menu selection
setopt alwaystoend          # move cursor to end of word when completin
setopt autopushd            # type ~-<Tab> for dirs you've been to
setopt autolist
setopt complete_aliases
setopt completeinword       # internal word completion
setopt correct              # try to correct first word spelling
setopt complete_in_word     # complete even within words. nice.
setopt extended_glob
setopt globdots             # include dotfiles in globs

autoload -U compinit
compinit

autoload -U promptinit
promptinit

# url quoting auf der kommandozeile
autoload -U url-quote-magic
zle -N self-insert url-quote-magic

setopt correctall

setopt hist_ignore_all_dups

setopt autocd

# 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
        isutfenv &&  -n "$LANG"  && \
            alias mrxvt="LANG=${LANG/(#b)(*)[.@]*/$match[1].iso885915} luit mrxvt"
    fi

    if check_com -c aterm ; then
        isutfenv &&  -n "$LANG"  && \
            alias aterm="LANG=${LANG/(#b)(*)[.@]*/$match[1].iso885915} luit aterm"
    fi

    if check_com -c centericq ; then
        isutfenv &&  -n "$LANG"  && \
            alias centericq="LANG=${LANG/(#b)(*)[.@]*/$match[1].iso885915} luit centericq"
    fi
fi

# set default browser
if  -z "$BROWSER"  ; then
    if  -n "$DISPLAY"  ; then
        #v# If X11 is running
        check_com -c firefox && export BROWSER=$BROWSERGUI
    else
        #v# If no X11 is running
        check_com -c w3m && export BROWSER=$BROWSERCO
    fi
fi

# set terminal property (used e.g. by msgid-chooser)
export COLORTERM="yes"

if  $TERM == "screen" ; then
#  TAB_TITLE_PREFIX='"${USER}$PROMPT_CHAR"'
  TAB_TITLE_PREFIX='"$PROMPT_CHAR"'
  TAB_TITLE_PROMPT='`echo $PWD | sed "s/^\/Users\//~/;s/^~$USER/~/;s/\/..*\//\/...\//"`'
  TAB_TITLE_EXEC='$cmd[1]:t'
  TAB_HARDSTATUS_PREFIX='"[`echo $PWD | sed "s/^\/Users\//~/;s/^~$USER/~/"`] "'
  TAB_HARDSTATUS_PROMPT='$SHELL:t'
  TAB_HARDSTATUS_EXEC='$cmd'
fi

raspberry pi
powered by

    ip-exchange.de

Personal tools