summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
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..06c3009
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,18 @@
+# .bashrc
+# Source global definitions
+[ -f /etc/bashrc ] && . /etc/bashrc
+
+# User-specific PATH
+case ":$PATH:" in
+ *":$HOME/.local/bin:"*|*":$HOME/bin:"*) ;;
+ *) PATH="$HOME/.local/bin:$HOME/bin:$PATH" ;;
+esac
+export PATH
+
+# Load modular bash configs
+if [ -d "$HOME/.bashrc.d" ]; then
+ for rc in "$HOME/.bashrc.d"/*.bashrc; do
+ [ -f "$rc" ] && . "$rc"
+ done
+fi
+unset rc