A common configuration file (e.g. for environment variables) on Unix and Linux systems
Questions tagged [.profile]
53 questions
50
votes
11 answers
re-use '~/.profile` for Fish?
(I'm talking about the shell Fish, esp. Fish's Fish.)
For Bash/ZSH, I had ~/.profile with some exports, aliases and other stuff.
I don't want to have a separate config for environment variables for Fish, I want to re-use my ~/.profile. How?
In The…
Albert
- 6,889
- 11
- 41
- 53
40
votes
8 answers
~/.profile is not loaded when using SSH (Ubuntu)
Edited to reflect the problem I really wanted to solve:
I need to set up my ruby environment so I can deploy via Capistrano.
export PATH=$HOME/.rbenv/bin:$PATH
eval "$(rbenv init -)"
I put these in ~deploy/.profile, but when I ssh in, they aren't…
Charles R
- 531
34
votes
5 answers
Bypass ~/.profile on remote login to a linux server
Is there a way to bypass or prevent the execution of ~/.profile when logging into a remote Linux server using either ssh or putty?
Andrew Hampton
- 713
31
votes
5 answers
.profile and .bashrc doesn`t work on my Mac
This problem I have for a long time. After running terminal .profile, and .bashrc file doesn`t work (are not executed). Could you indicate where should I looking form a source of problem?
michaltaberski
25
votes
3 answers
.profile not running when I start a bash terminal
When I start a bash terminal, my .profile is not being executed. I do not have a ~/.bash_profile or a ~/.bash_login, so .profile is supposed to run, right? What else could be wrong?
David Doria
- 354
23
votes
2 answers
.profile in Mac OS X?
I have set my terminal preferences to execute:
set -o vi
at startup. The problem is I don't get that command executed when open a new terminal tab.
Is there something like .profile in OS X where I can put that command?
OscarRyz
- 4,141
19
votes
1 answer
Can't find .profile file in OS X
I'm trying to install TBB (Thread Building Blocks) from Intel onto my Mac. However, no matter where I look, I can't find the .profile file that I require to modify to use TBB.
Any advice or hints on where I could find it?
If it's hidden, how can I…
Rommel Alonzo
- 193
16
votes
2 answers
Where to create a .profile on Mac OS X
I'm using Mac OS X Snow Leopard. Which folder do I create my .profile file in?
I like to create a path for /usr/local/mysql/bin – any tips on how to export this path? I only know how to type it for .bash_profile.
nicole
- 809
14
votes
2 answers
Order of execution and purpose of .profile vs .zshrc
Few questions:
What is a distinct purpose of .profile and .zshrc?
What gets called first when the shell comes to life?
JAM
- 489
14
votes
1 answer
~/.profile is not sourced on startup
I've recently installed virtualenv + virtualenvwrapper on Linux Mint 10 LXDE. For convenience I've added the standard WORKON_HOME settings to my ~/.profile
export WORKON_HOME=$HOME/Envs
source /usr/local/bin/virtualenvwrapper.sh
Then I've noticed…
Botond Béres
- 275
- 2
- 3
- 9
11
votes
2 answers
.profile not loaded (osx lion)
after installing mac ports my .profile looks like this:
# MacPorts Installer addition on 2011-12-04_at_20:48:26: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your…
Erik
- 213
9
votes
2 answers
How does one define aliases for use within MobaXTerm *local* bash shell?
I have been using MobaXterm for the last couple of weeks in Windows and I love it.
However, I haven't quite figured out how to define my own aliases for use within the local bash shell. The obvious Google search doesn't seem to yield any results on…
Mateo
- 191
5
votes
1 answer
.profile and .bash_profile ignored when starting tmux from .bashrc?
I've been having an issue with getting my .profile to be sourced when SSHing into an Ubuntu 12.04 server instance. My .bashrc does the following towards the end:
if [[ "$TERM" != "screen-256color" ]]
then
tmux attach-session -t "$USER" || tmux…
glitch
- 1,285
5
votes
3 answers
set PATH permanently
How do I edit my .profile file to set a permanent value for my PATH variable?
Is there any other file that needs editing?
(This is on CentOs 6.2)
user1508893
3
votes
2 answers
Sourcing ~/.bashrc in ~/.profile?
I'm quite new to developing under OSX and assigned some aliases and other preferences in the ~/.profile initially, however it got quite big and messy after a while because I had a lot of Environment Variables to define too.
So I created a ~/.bashrc…
G.Rassovsky
- 205