dotfiles/.zsh/setopt.zsh

22 lines
613 B
Bash

# append command to history file once executed
setopt inc_append_history
# Do not write events to history that are duplicates of previous events
setopt HIST_IGNORE_DUPS
# When searching history don't display results already cycled through twice
setopt HIST_FIND_NO_DUPS
# Remove extra blanks from each command line being added to history
setopt HIST_REDUCE_BLANKS
setopt APPEND_HISTORY
setopt EXTENDED_HISTORY
setopt EXTENDED_GLOB
setopt AUTO_CD
# Turn off flow control
setopt noflowcontrol
# Make options
if [[ -r /proc/cpuinfo ]]; then
export MAKEOPTS=-j$(($(grep -c '^processor' /proc/cpuinfo) + 1))
fi