From 75cda699f8843e0eef43181e6008290073c311ae Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Tue, 5 Mar 2024 12:03:30 +0000 Subject: [PATCH] Add bash[rc|profile] --- .bash_profile | 8 ++++++++ .bashrc | 25 +++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .bash_profile create mode 100644 .bashrc diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..baaaa32 --- /dev/null +++ b/.bash_profile @@ -0,0 +1,8 @@ +# .bash_profile + +# Get the aliases and functions +if [ -f ~/.bashrc ]; then + . ~/.bashrc +fi + +# User specific environment and startup programs diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..1ed1d53 --- /dev/null +++ b/.bashrc @@ -0,0 +1,25 @@ +# .bashrc + +# Source global definitions +if [ -f /etc/bashrc ]; then + . /etc/bashrc +fi + +# User specific environment +if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then + PATH="$HOME/.local/bin:$HOME/bin:$PATH" +fi +export PATH + +# Uncomment the following line if you don't like systemctl's auto-paging feature: +# export SYSTEMD_PAGER= + +# User specific aliases and functions +if [ -d ~/.bashrc.d ]; then + for rc in ~/.bashrc.d/*; do + if [ -f "$rc" ]; then + . "$rc" + fi + done +fi +unset rc