# /etc/profile
+# $Id$
# System wide environment and startup programs
# Functions and aliases go into the shells dependent startup files
;;
zsh)
PS1='[%n@%m %~]%(!.#.%\$) '
+
+ # Setup key bindings
bindkey -e >/dev/null 2>&1
+ bindkey "^[[1~" beginning-of-line >/dev/null 2>&1
+ bindkey "^[[H" beginning-of-line >/dev/null 2>&1
+ bindkey "^[[4~" end-of-line >/dev/null 2>&1
+ bindkey "^[[F" end-of-line >/dev/null 2>&1
+ bindkey "^[[3~" delete-char >/dev/null 2>&1
+ bindkey "^[[5~" history-search-backward >/dev/null 2>&1
+ bindkey "^[[6~" history-search-forward >/dev/null 2>&1
+
+ case "$TERM" in
+ aterm)
+ bindkey '^[[A' up-line-or-history >/dev/null 2>&1
+ bindkey '^[[B' down-line-or-history >/dev/null 2>&1
+ bindkey '^[[D' backward-char >/dev/null 2>&1
+ bindkey '^[[C' forward-char >/dev/null 2>&1
+ ;;
+ esac
+ # other HISTFILE, zsh uses diffrent fmt
+ HISTFILE=~/.historyz
+ # w/o this hist file wont get saved !
+ SAVEHIST=$HISTSIZE
;;
esac
done
unset i
+
+# vi:syntax=sh