Add .profile
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
9547aa3ee3
commit
3aee19333c
4 changed files with 36 additions and 7 deletions
|
@ -1,5 +1,13 @@
|
|||
# If .bash_profile exists, bash doesn't read .profile
|
||||
if [[ -f $HOME/.profile ]]; then
|
||||
. $HOME/.profile
|
||||
fi
|
||||
|
||||
# If the shell is interactive and .bashrc exists, get the aliases and functions
|
||||
if [[ $- == *i* && -f $HOME/.bashrc ]]; then
|
||||
. $HOME/.bashrc
|
||||
fi
|
||||
|
||||
if [ "$(tty)" = "/dev/tty1" ]; then
|
||||
startx && exit
|
||||
fi
|
||||
|
||||
source $HOME/.bashrc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue