Chnages to bash

This commit is contained in:
Martin Pander
2023-02-28 21:02:51 +01:00
parent 12c5529453
commit 9748f419f0
2 changed files with 20 additions and 17 deletions

View File

@ -1,7 +1,22 @@
# Lines configured by zsh-newuser-install
# Record each line as it gets issued
# PROMPT_COMMAND='history -a'
PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"
# Huge history. Doesn't appear to slow things down, so why not?
HISTSIZE=500000
SAVEHIST=500000
HISTFILESIZE=100000
# Avoid duplicate entries
HISTCONTROL="erasedups:ignoreboth"
# Don't record some commands
export HISTIGNORE="&:[ ]*:exit:ls:bg:fg:history:clear"
# Useful timestamp format
HISTTIMEFORMAT='%F %T '
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
setopt autocd extendedglob
unsetopt beep
bindkey -v
@ -22,9 +37,6 @@ ZSH_HIGHLIGHT_STYLES=(cursor bold)
export EDITOR=nvim
export PATH="$HOME/bin:/usr/local/bin:$PATH"
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
# export PATH=/usr/local/MATLAB/R2015b/bin:/usr/local/MATLAB/R2015b/toolbox/local:$PATH
export PATH=/usr/local/MATLAB/R2016a/bin:/usr/local/MATLAB/R2016a/toolbox/local:$PATH
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh