修改 群晖 SSH history 条数和保存文件

3 min read
vim /etc.defaults/.bashrc_profile


PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
alias ls='ls --color=auto'
alias grep='grep --color=auto'

#HISTFILE=/var/tmp/.bash_history
HISTFILE=/var/services/homes/panw3i/.bash_history
HISTFILESIZE=100000
HISTSIZE=100000

bind '"\e[1~": beginning-of-line' &> /dev/null
bind '"\e[4~": end-of-line' &> /dev/null

if [ -f ~/.bashrc ]; then
    source ~/.bashrc
fi