.profile is not run on startup

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

.profile is not run on startup

Postby xpanta on Mon Dec 03, 2012 9:58 am

Hi,

For some reason my ~/.profile script is not run after startup and I need to do a "source .profile" the first time I start a terminal.

How can I solve this?

(I have done a chmode 755 to my profile script).

This is my script:

Code: Select all
# 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

export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Dropbox/workspace/
source /usr/local/bin/virtualenvwrapper.sh
xpanta
Level 1
Level 1
 
Posts: 17
Joined: Wed Nov 07, 2012 7:33 am

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], CondorCluster, Google [Bot] and 24 guests