summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2026-01-23 11:00:52 -0500
committerJack Jamison <jackqjamison@gmail.com>2026-01-23 11:00:52 -0500
commit6e8fbf36e07f9dd671880c4231131e0e38c2d384 (patch)
treeefb9f3cf29b7b31f915c7b29dd4785a8d893980e /.bashrc
parent1df6a929cb0f540b2b8caf8f127afc3ad6c2468c (diff)
bash and more proj stuff
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc40
1 files changed, 40 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
new file mode 100644
index 0000000..cb578fb
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,40 @@
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+. /etc/profile
+export PATH="$HOME/dotfiles/scripts/:$PATH"
+
+# Completion
+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
+
+# History
+export HISTSIZE=2000
+export HISTFILESIZE=2000 # Equivalent to SAVEHIST
+export HISTCONTROL=ignorespace # Equivalent to setopt hist_ignore_space
+
+# Misc options
+shopt -s autocd # Equivalent to setopt autocd
+shopt -s extglob # Equivalent to setopt extendedglob
+
+# Disable Beep (Equivalent to unsetopt BEEP)
+bind 'set bell-style none'
+
+# Aliases
+alias ls='ls --color=auto'
+alias grep='grep --color=auto'
+
+# Flow control
+stty -ixon
+
+RESET='\[\e[0m\]'
+BOLD='\[\e[1m\]'
+COLOR_USER='\[\e[38;5;153m\]'
+COLOR_DIR='\[\e[38;5;47m\]'
+COLOR_GIT='\[\e[38;5;105m\]'
+COLOR_END='\[\e[38;5;15m\]'
+
+PS1="${BOLD}${COLOR_USER}\u ${COLOR_DIR}\w ${COLOR_GIT}\$(git-ps1)${COLOR_END}$ ${RESET}"