Browse Source

Upload files to ''

Thomas Kandler 3 years ago
parent
commit
20176dedd5
1 changed files with 35 additions and 0 deletions
  1. 35
    0
      .bashrc

+ 35
- 0
.bashrc View File

@@ -0,0 +1,35 @@
1
+#
2
+# ~/.bashrc
3
+#
4
+
5
+# If not running interactively, don't do anything
6
+[[ $- != *i* ]] && return
7
+
8
+alias ls='ls --color=auto'
9
+PS1='[\u@\h \W]\$ '
10
+# >>> Added by cnchi installer
11
+BROWSER=/usr/bin/chromium
12
+EDITOR=/usr/bin/nano
13
+
14
+
15
+# Eternal bash history.
16
+# ---------------------
17
+# Undocumented feature which sets the size to "unlimited".
18
+# http://stackoverflow.com/questions/9457233/unlimited-bash-history
19
+export HISTFILESIZE=
20
+export HISTSIZE=
21
+export HISTTIMEFORMAT="[%F %T] "
22
+# Change the file location because certain bash sessions truncate .bash_history file upon close.
23
+# http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login
24
+export HISTFILE=~/.bash_eternal_history
25
+
26
+
27
+# Preserve bash history in multiple terminal windows.
28
+#----------------------------------------------------
29
+# Avoid duplicates
30
+export HISTCONTROL=ignoredups:erasedups  
31
+# When the shell exits, append to the history file instead of overwriting it
32
+shopt -s histappend
33
+
34
+# After each command, append to the history file and reread it
35
+export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"