summaryrefslogtreecommitdiff
path: root/dotfiles/system/.bashrc
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-05-08 18:49:34 -0500
committerCraig Jennings <c@cjennings.net>2025-05-08 18:51:59 -0500
commit000e00871830cd15de032c80e2b62946cf19445c (patch)
tree794a7922750472bbe0e024042d6ba84f411fc3e0 /dotfiles/system/.bashrc
parentfe302606931e4bad91c4ed6df81a4403523ba780 (diff)
adding missing dotfiles and folders
- profile.d/ - bashrc - authinfo.gpg - .zsh/
Diffstat (limited to 'dotfiles/system/.bashrc')
-rw-r--r--dotfiles/system/.bashrc57
1 files changed, 57 insertions, 0 deletions
diff --git a/dotfiles/system/.bashrc b/dotfiles/system/.bashrc
new file mode 100644
index 0000000..95d78ff
--- /dev/null
+++ b/dotfiles/system/.bashrc
@@ -0,0 +1,57 @@
+#!/bin/bash
+# cjennings .bashrc
+
+# tells shellcheck not to follow references to other files
+# shellcheck source=/dev/null
+
+# If not running interactively, don't do anything
+case $- in
+ *i*) ;;
+ *) return;;
+esac
+
+# env variables, aliases, and functions that are not bash specific
+source "$HOME"/.profile
+
+# don't put duplicate lines or lines starting with space in the history.
+HISTCONTROL=ignoreboth
+
+# infinite history
+HISTSIZE=HISTFILESIZE=
+
+# append and reload the history after each command
+PROMPT_COMMAND="history -a; history -n"
+
+# ignore the following commands from the history
+HISTIGNORE="ls:ll:cd:pwd:bg:fg:history"
+
+# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
+HISTSIZE=100000
+HISTFILESIZE=10000000
+
+# append to the history file, don't overwrite it
+shopt -s histappend
+
+# cd to directory by typing its name
+shopt -s autocd
+
+# check window size after each command + update LINES and COLUMNS values.
+shopt -s checkwinsize
+
+# enable programmable completion features
+if ! shopt -oq posix; then
+ if [ -f /usr/share/bash-completion/bash_completion ]; then
+ . /usr/share/bash-completion/bash_completion
+ elif [ -f /etc/bash_completion ]; then
+ . /etc/bash_completion
+ fi
+fi
+if [ -f /etc/bash_completion ]; then
+ . /etc/bash_completion
+fi
+
+export PS1="[\d, \t] \u@\H:\w \n$ "
+
+source "$HOME"/.profile
+
+[ -f "$HOME"/.fzf.bash ] && source "$HOME"/.fzf.bash