summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorWarrick Lo <warrick.s.z.lo@gmail.com>2021-11-27 04:18:00 -0800
committerWarrick Lo <warrick.s.z.lo@gmail.com>2021-11-27 04:18:00 -0800
commitd4fa77e06115731c056b285ea980f4b30db349a8 (patch)
tree8f05d76e19ccc9eb312b8da531c3413bd9ad7ba3 /.bashrc
Add shell configs
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc18
1 files changed, 18 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
new file mode 100644
index 0000000..b486d2c
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,18 @@
+# Bash configuration
+
+# Set prompt.
+PS1="\[\033[38;5;3m\][\u@\h \w]\[\033[0m\] \$ "
+
+# History file configuration.
+shopt -s histappend
+HISTSIZE=100000
+HISTFILESIZE=100000
+HISTFILE="$HOME/.cache/bash/history"
+
+# GPG.
+export GPG_TTY="$(tty)"
+
+# Load aliases.
+if [ -f "$HOME/.config/aliasrc" ]; then
+ source "$HOME/.config/aliasrc"
+fi