Hacker News new | past | comments | ask | show | jobs | submit login

These are the history setopt's I have, but I don't know if they all make sense with each other though. I set it up once and haven't touched it in years.

HIST_IGNORE_DUPS # don't add multiple 'cd ..', etc in a row?

HIST_EXPIRE_DUPS_FIRST # save unique hist entries longer

HIST_VERIFY # edit recalled history before running

INC_APPEND_HISTORY # add commands to .history immediately

EXTENDED_HISTORY # save timestamp on history entries

# set a huge history... doesn't seem to affect performance at all

HISTFILE=~/.zsh_history

HISTSIZE=10000

SAVEHIST=$((HISTSIZE/2))

For the completion I setopt AUTO_REMOVE_SLASH GLOB_COMPLETE MENU_COMPLETE NO_AUTO_LIST NO_BAD_PATTERN NO_BEEP NO_LIST_AMBIGUOUS NO_LIST_BEEP NO_NOMATCH, but I'm not sure what they all do ;-P




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: