dotfiles/.config/zsh/60-options.zsh

25 lines
860 B
Bash

# CD to directory when you type it, without having to type cd
setopt auto_cd
# Use directory stack
setopt auto_pushd
# resolve links when CDing
setopt chase_links
# Completion
setopt auto_list
# History
setopt hist_ignore_dups
setopt hist_ignore_space
setopt hist_expire_dups_first
setopt extended_history # adds timestamps and command durations to history file
setopt hist_reduce_blanks
unsetopt hist_save_by_copy # we have compression enabled on history file, we don't want to lose that attribute, so truncate and rewrite rather than making a new file and moving.
setopt hist_save_no_dups # no reason to save old dups
setopt hist_verify # hitting enter on history search will pull it into the current line editor, not execute directly
setopt inc_append_history_time
# I/O
unsetopt clobber # disallow clobbering of files with > (require >! or >| instead)