summaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2025-07-26 14:16:06 -0500
committerzachir <zachir@librem.one>2025-07-26 14:16:06 -0500
commit952633dbe9b7d6896e771fe8225cab8e963ff833 (patch)
tree5303760c010dcc8cd48b57230eabb87134edbe9d /bash
parentc9ded4f946c2ab56e85553f51df03a1e87adad4b (diff)
parentb9a2511463cad1705ce5b506346b4b84bf181d21 (diff)
Merge branch 'master' into cla
Diffstat (limited to 'bash')
-rw-r--r--bash/.bash_logout2
-rw-r--r--bash/.bashrc24
2 files changed, 26 insertions, 0 deletions
diff --git a/bash/.bash_logout b/bash/.bash_logout
new file mode 100644
index 0000000..9bccd62
--- /dev/null
+++ b/bash/.bash_logout
@@ -0,0 +1,2 @@
+clear
+reset
diff --git a/bash/.bashrc b/bash/.bashrc
new file mode 100644
index 0000000..600352a
--- /dev/null
+++ b/bash/.bashrc
@@ -0,0 +1,24 @@
+# Syntax Highlighting
+source /usr/share/blesh/ble.sh
+
+# Incorporate my SH agnostic stuff
+[ -f "$XDG_CONFIG_HOME/sh/aliases" ] && source "$XDG_CONFIG_HOME/sh/aliases"
+[ -f "$XDG_CONFIG_HOME/sh/functions" ] && source "$XDG_CONFIG_HOME/sh/functions"
+
+# History Search
+bind '"\e[A": history-search-backward'
+bind '"\e[B": history-search-forward'
+
+# History Cleaning
+export HISTCONTROL="erasedups:ignorespace"
+
+# Run-Help Ability
+run-help() { help "$READLINE_LINE" 2>/dev/null || man "$READLINE_LINE"; }
+bind -m vi-insert -x '"\eh": run-help'
+bind -m emacs -x '"\eh": run-help'
+
+# CD when typing directory name
+shopt -s autocd
+
+# Set my prompt
+export PS1='\e[42m[\u@\H]\e[46\w\e[42m\$\e(B\e[m '