Unified .profile

This commit is contained in:
cubernetes 2023-07-27 04:41:02 +02:00
parent b233a7c02e
commit 054af413f5
1 changed files with 14 additions and 14 deletions

View File

@ -1,21 +1,21 @@
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
if [ -n "$BASH_VERSION" ] ; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ] && [ -r "$HOME/.bashrc" ] ; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
PATH="$HOME/.local/bin:$PATH"
fi
if [ -f ~/.userprofile ]; then
. ~/.userprofile
# add cargo bin to path
if [ -f "${HOME}"/.cargo/env ] || [ -r "${HOME}"/.cargo/env ]; then
. "${HOME}"/.cargo/env
fi
if ! ps aux|grep -v grep|grep startx 1>/dev/null; then
2>/dev/null startx
fi