diff options
author | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-05-02 20:18:50 +0100 |
---|---|---|
committer | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-05-02 20:18:50 +0100 |
commit | 433757bf898f65009cb9d62497d7fda3e0a504a2 (patch) | |
tree | eb1d434cd4ee9e2ab3fa909593ba6f62decffc2c | |
parent | 41210fd17b4cde5080dcc4e58e776e50b48ed63c (diff) |
making bash good for 2022 in openbsd
-rw-r--r-- | bashrc | 37 |
1 files changed, 27 insertions, 10 deletions
@@ -9,10 +9,10 @@ #esac # Use vi if not vim -case "$(command -v vim)" in - */vim) VIM=vim ;; - *) VIM=vi ;; -esac +#case "$(command -v vim)" in +# */vim) VIM=vim ;; +# *) VIM=vi ;; +#esac # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then @@ -26,14 +26,32 @@ fi # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options -HISTCONTROL=ignoreboth +export HISTCONTROL=ignoreboth # append to the history file, don't overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) -HISTSIZE=1000 -HISTFILESIZE=20000 +export HISTSIZE=10000 +export HISTFILESIZE=20000 +export HISTTIMEFORMAT='[%F_%X]: ' +export TIMEFORMAT='%3R' +export LS_COLORS='fi=37:di=1;97:ln=90:mh=90:ex=3;2;37:no=1;97:mi=90:ow=91' +export GREP_COLOR='1;91' +export LESSSECURE=1 +export SUDO_EDITOR='/usr/local/bin/rvim' + +#set TERM +export TERM="xterm-256color" + +# Pretty-print man(1) pages, which doesn't do anything +export LESS_TERMCAP_mb=$'\E[1;91m' +export LESS_TERMCAP_md=$'\E[1;91m' +export LESS_TERMCAP_me=$'\E[0m' +export LESS_TERMCAP_ue=$'\E[0m' +export LESS_TERMCAP_so=$'\E[1;93m' +export LESS_TERMCAP_se=$'\E[0m' +export LESS_TERMCAP_us=$'\E[1;92m' # use colorls if it's installed, plain old ls otherwise alias ls='colorls -G' @@ -114,9 +132,8 @@ export FZF_CTRL_T_COMMAND=$FZF_DEFAULT_COMMAND export FZF_ALT_C_COMMAND=$FZF_DEFAULT_COMMAND export FZF_DEFAULT_OPTS='--color info:108,prompt:109,spinner:108,pointer:168,marker:168' -#set TERM -export TERM="xterm-256color" [ -f ~/.fzf.bash ] && source ~/.fzf.bash -EDITOR=/usr/local/bin/vim +export EDITOR=/usr/local/bin/vim +source ~/perl5/perlbrew/etc/bashrc |