A common configuration file (e.g. for environment variables) on Unix and Linux systems

learn more… | top users | synonyms

0
votes
0answers
8 views

Change profiles for all running terminator windows?

I'm running kubuntu, and I've been building a script that allows me to switch my desktop from light to dark and back. I just started using terminator, and I'm wondering if there's a way to switch the ...
0
votes
0answers
8 views

How to colorize the output using sed - no GNU tools available

I'm using a short alias in my .profile file to colorize the output of the sdiff command, just to make it easier to spot differences. The alias is like this: alias color_diff="sed 's/[|< |> ...
0
votes
0answers
13 views

How to prevent MacVim from inherenting .profile as if it was Bash itself?

I have this guard in my .profile: if [ -n "$BASH_VERSION" ]; then if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi if [ -f "$HOME/.bash_aliases" ]; then . ...
0
votes
0answers
30 views

Setting keyboard shortcuts to launch program on startup/login in linux across WMs

What I want to achieve is having access to a couple of keyboard shortcuts (for an instance to launch the terminal), bound to my user. This is because we have a setup with a lot of different machines, ...
0
votes
0answers
43 views

.profile in LXDE

I recently install debian wheezy (7.5) from the netinst, without gnome3, then install LXDE with sudo apt-get install task-lxde-desktop. No trouble with this, LXDE works perfectly :) I was trying to ...
0
votes
1answer
84 views

Redhat linux terminal profile location

I am using VNC to connect to a remote machine where I used to set preferences for the terminal like my own keyboard shortcuts. Can anybody tell me where these profile configuration is getting saved ...
0
votes
0answers
21 views

Add a path in $PATH globally for every user

Do we have anyway to add a path globally so that each user gets it in $PATH. I want to add path of ANT so that each user doesn't need to add it in his $PATH variable.
0
votes
1answer
47 views

Configuring .profile for use across multiple servers

I have a home directory that is mounted to several CentOS servers simultaneously, part of an OpenGrid cluster. Most of these server nodes are configured identically, so my personal configurations in ...
0
votes
1answer
28 views

Export variables or set them in .profile?

I am installing Apache Maven 3.1 on Ubuntu Desktop 10.04. The installation page http://maven.apache.org/download.cgi#Installation, in the section "Unix-based Operating Systems", states to export ...
0
votes
1answer
212 views

What is the difference between setting the path via editing /private/etc/paths vs ~/.profile?

I just found out I can edit my PATH by editing /etc/paths or /private/etc/paths, or by putting export PATH=$PATH:/a/path in ~/.profile or one of my other startup scrips. Is there a difference between ...
1
vote
1answer
1k views

.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" ]] ...
2
votes
2answers
56 views

alias or function for emacs command?

So I'm on my first day at my new job, and on the server we use, the default emacs is X-windows based. I much prefer using it in the good old terminal, and I'd like to be able to make the command ...
0
votes
1answer
406 views

OSX Mountain Lion - .profile doesn't do anything? [duplicate]

Recently tried the package manager Homebrew to grab things like PyQt4. It also recommended grabbing Python; no problem, done. So a simple python at the Terminal window didn't open the recently ...
3
votes
3answers
3k views

~/.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 ...
0
votes
1answer
413 views

csh -> bash, autostart .bashrc PCBSD (FREEBSD)

Hey Im stucked with this problem... Im using PCBSD (freebsd) which has default csh shell, now I wanted to use bash as a default so I made > chsh -s /bin/bash milo now i have in passwd > ...
2
votes
1answer
7k views

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)
4
votes
1answer
2k views

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 ...
1
vote
1answer
567 views

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?
6
votes
2answers
1k views

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 ...
1
vote
2answers
1k views

What is .profile file in AIX Platform?

In my home path, there is one file named ".profile". It contained ORACLE_HOME path and all. What is the use of .profile file? Is it similar to .cshrc file?
0
votes
1answer
1k views

How to create .profile file and where it should be saved

Iam very new to Mac OS X 10.6.2 ,i want to create java_home and path. I find that those will be defined in .profile file, how can i create it and where should it be created.
0
votes
3answers
1k views

Edit .profile file without using terminal

I have edited the .profile file and I messed up something so that the PATH has changed and I can't use commands such as nano, sudo, etc... The problem would be easy to solve because I know how to edit ...
0
votes
3answers
500 views

How to make an alias for a folder on a mounted drive?

I use parallels to run a windows machine and would love to make an alias in my .profile to make a shortcut to my project folder, but the following alias below dosn't seem to work. alias ...
3
votes
3answers
4k views

.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?
9
votes
1answer
4k views

.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 ...
1
vote
2answers
521 views

Ubuntu lucid not reading etc profile for new XTerm

I've added abc.sh to /etc/profile.d When I start a new XTerm the environment variables in the abc.sh are not being set in the new XTerm. This works fine if I su - in an existing XTerm.
0
votes
2answers
2k views

Why isn't the shell reading from Bash startup files?

I'm just trying to do the simple task of adding my MySQL directory to the PATH variable so that I can use the mysql, etc. commands in my terminal on my Mac OS X 10.6.6 (Snow Leopard). After ...
1
vote
1answer
4k views

~/.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 ...
0
votes
2answers
755 views

On Mac ~/.profile file went suddenly missing

And with it all my class paths, env vars and aliases. Is this something that can be recovered?
22
votes
5answers
6k views

.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?
1
vote
3answers
2k views

Edit bash_profile?

I am trying to learn bash. I am using ubuntu. I want to add a function. I am not sure weather I need to create a.profile or .bash_profile file so I create both in the ~/ directory. I add something ...
0
votes
3answers
2k views

“-bash: ls: command not found” error in Terminal on Mac. How to correct it?

I edited the .profile file to add a new PATH. I believe I set it wrong such that most commands become unavailable. Since I can't use ls or vi commands to edit .profile again, any idea how I can ...
2
votes
3answers
550 views

macbook, messed up my .profile and now no commands work like nano, rm, etc

I messed up a .profile and now I can't even get nano to work. I was trying to add git to my environment variable whenever I start terminal, and I messed the command up obviously and no nothing works. ...
2
votes
2answers
769 views

FreeBSD console broken?

It seems my FreeBSD console is misconfigured (i guess). I cannot use home or end buttons in command line (it prints ~), and in vi left arrow is switching me from edit to command mode, which makes ...
12
votes
5answers
10k views

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?
14
votes
2answers
47k views

.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 ...