Create .profile

This commit is contained in:
BitHeaven 2022-08-13 12:53:59 +05:00 committed by GitHub
parent 3d2f1bfa16
commit 148de3a945
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

18
.profile Normal file
View File

@ -0,0 +1,18 @@
if [ -z $DISPLAY ] && [ $(tty) = /dev/tty1 ]; then
startx
fi
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi