aboutsummaryrefslogtreecommitdiff
path: root/dot-bashrc
blob: 6a213c70724beacaa2c16a27e9983523dca5d6ae (plain)
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
#!/bin/bash
#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

# Disable suspend/resume (ctrl-s, ctrl-q)
stty -ixon

# Enable extended globbing
shopt -s extglob

# History settings
HISTTIMEFORMAT="%F %T "
HISTCONTROL=ignoredups

# Number of lines to store in RAM
HISTSIZE=5000

# Number of lines to store on file
HISTFILESIZE=10000

# Append history instead of overwriting
shopt -s histappend

# Immediately add history instead of end of session
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"