style: use constant styles in .bash*
This commit is contained in:
parent
588586c576
commit
b05f1d7a23
@ -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
|
||||||
|
16
dot-bashrc
16
dot-bashrc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user