summaryrefslogtreecommitdiff
path: root/bash/.bashrc
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2025-07-27 17:11:22 -0500
committerzachir <zachir@librem.one>2025-07-27 17:11:22 -0500
commit442246498a50440a19d9cba78e83abb55d542879 (patch)
tree1547928229b5d9dcbd97c031039e5a92961e9ee3 /bash/.bashrc
parent4f867087e2cf54a4d972af95b22cef2a0a3a8018 (diff)
parent309f88b7875c27e063062fdebe71058765b199ee (diff)
Merge branch 'master' into cas
Diffstat (limited to 'bash/.bashrc')
-rw-r--r--bash/.bashrc24
1 files changed, 24 insertions, 0 deletions
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 '