Merge #38 style: use constant styles in .bash*

This commit is contained in:
Siteshwar Vashisht 2023-04-11 11:13:47 +00:00
commit 64201f5de1
2 changed files with 8 additions and 10 deletions

View File

@ -2,7 +2,7 @@
# Get the aliases and functions # Get the aliases and functions
if [ -f ~/.bashrc ]; then if [ -f ~/.bashrc ]; then
. ~/.bashrc . ~/.bashrc
fi fi
# User specific environment and startup programs # User specific environment and startup programs

View File

@ -2,12 +2,11 @@
# Source global definitions # Source global definitions
if [ -f /etc/bashrc ]; then if [ -f /etc/bashrc ]; then
. /etc/bashrc . /etc/bashrc
fi fi
# User specific environment # User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]] if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH" PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi fi
export PATH export PATH
@ -17,11 +16,10 @@ export PATH
# User specific aliases and functions # User specific aliases and functions
if [ -d ~/.bashrc.d ]; then if [ -d ~/.bashrc.d ]; then
for rc in ~/.bashrc.d/*; do for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then if [ -f "$rc" ]; then
. "$rc" . "$rc"
fi fi
done done
fi fi
unset rc unset rc