-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.bashrc
35 lines (29 loc) · 1.22 KB
/
.bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
export LANG=en_US.UTF-8
if [ -n "$NEVER" ]; then
eval "$('/opt/homebrew/bin/brew' shellenv)"
fi
###############################################################################
# .bashrc subshells run only this, not .bash_profile
###############################################################################
# shellcheck shell=bash
#echo ".bashrc running"
#export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
# history settings
# HISTSIZE 2500 had good performance (250ms startup, contains about three to four months history)
export HISTSIZE=9999
if [ -n "$BASH_VERSION" ]; then
export HISTFILESIZE=$HISTSIZE
export HISTTIMEFORMAT='%F %T '
# make sure history is saved
shopt -s histappend
# http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login
export HISTFILE=~/.bash_history_not_truncated
# stop duplicates in history
export HISTCONTROL=ignoreboth:erasedups
# and synced https://unix.stackexchange.com/questions/18212/bash-history-ignoredups-and-erasedups-setting-conflict-with-common-history
PROMPT_COMMAND="history -n; history -w; history -c; history -r; $PROMPT_COMMAND"
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
fi
if [ -n "$NEVER" ]; then
source ~/.keprc
fi