style: use constant styles in .bash*

This commit is contained in:
icedrocket 2022-11-07 06:32:16 +09:00
parent 588586c576
commit b05f1d7a23
2 changed files with 8 additions and 10 deletions

View File

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

View File

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