You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
751 B
Bash
24 lines
751 B
Bash
# /etc/skel/.bash_profile
|
|
|
|
# This file is sourced by bash for login shells. The following line
|
|
# runs your .bashrc and is recommended by the bash info pages.
|
|
if [[ -f ~/.bashrc ]] ; then
|
|
. "$HOME/.bashrc"
|
|
fi
|
|
|
|
if [[ -f ~/.bash_sources ]]; then
|
|
. $HOME/.bash_sources
|
|
fi
|
|
if [[ -f ~/.bash_aliases ]] ; then
|
|
. $HOME/.bash_aliases
|
|
fi
|
|
|
|
if [[ -f ~/.localrc ]] ; then
|
|
. $HOME/.localrc
|
|
elif [[ -d "$HOME/.local/var/log" ]]; then
|
|
echo "$HOME/.localrc not found. Have you created it yet?" | gawk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $0 }' >> ~/.local/var/log/localrc.log
|
|
else
|
|
mkdir -p ~/.local/var/log
|
|
echo "$HOME/.localrc not found. Have you created it yet?" | gawk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $0 }' >> ~/.local/var/log/localrc.log
|
|
fi
|