# Lines configured by zsh-newuser-install HISTFILE=~/.histfile HISTSIZE=10000 SAVEHIST=10000 bindkey -e # End of lines configured by zsh-newuser-install # The following lines were added by compinstall zstyle :compinstall filename '/home/alex/.zshrc' if [ $TERM = "dumb" ] then unsetopt zle fi if [[ `uname` == 'FreeBSD' ]] then # FreeBSD ls does not support colors alias ls='ls -Fh' alias ll='ls -lFh' alias ltr='ls -ltr' else alias ls='ls -Fh --color=yes' alias ll='ls -lFh --color=yes' alias ltr='ls -ltr' fi source ~/.zsh/.zsh-simpleprompt autoload -Uz compinit compinit # End of lines added by compinstall bindkey '\e[3~' delete-char function set-eterm-dir { echo -e "\033AnSiTu" "$LOGNAME" # $LOGNAME is more portable than using whoami. echo -e "\033AnSiTc" "$(pwd)" if [ $(uname) = "SunOS" ]; then # The -f option does something else on SunOS and is not needed anyway. hostname_options=""; else hostname_options="-f"; fi echo -e "\033AnSiTh" "$(hostname $hostname_options)" # Using the -f option can cause problems on some OSes. history -a # Write history to disk. } # Track directory, username, and cwd for remote logons. if [ "$TERM" = "eterm-color" ]; then PROMPT_COMMAND=set-eterm-dir fi