ohmybash / oh-my-bash

A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
https://ohmybash.github.io
MIT License
5.55k stars 626 forks source link

Removed redundant shopt command (histappend) #426

Closed The-Judge closed 1 year ago

The-Judge commented 1 year ago

shopt -s histappend is executed twice in lib/history.sh with just 12 lines in between, which do not really do anything but define a single variable (HISTFILE). No reason to have this twice:

$ grep -n 'shopt -s histappend' ~/.oh-my-bash/lib/history.sh
2:shopt -s histappend # append to bash_history if Terminal.app quits
14:shopt -s histappend
$