浏览代码

Enable histappend

master
10sr 4 年前
父节点
当前提交
9f23de9cba
签署人:: 10sr GPG 密钥 ID: 7BEC428194130EB2
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      shrc

+ 9
- 0
shrc 查看文件

@@ -131,6 +131,15 @@ then
# stty erase '^h'
fi

if $inbash
then
# https://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows
# Avoid duplicates
HISTCONTROL=ignoredups:erasedups
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend
fi

# Zsh specific preferences
# http://www.clear-code.com/blog/2011/9/5.html
if $inzsh


正在加载...
取消
保存