Displaying 1 result from an estimated 1 matches for "ignorespace".
2012 Mar 15
3
Problem with stored configs / Invalid unicode escaping
...If not running interactively, don''''t do anything
[ -z "$PS1" ] && return
# don''''t put duplicate lines in the history. See bash(1) for more options
# don''''t overwrite GNU Midnight Commander''''s setting of `ignorespace''''.
HISTCONTROL=$HISTCONTROL${HISTCONTROL+:}ignoredups
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoreboth
# append to the history file, don''''t overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in ba...