Questions tagged [.profile]

.profile is the local shell initialization script for Unix shells (such as sh, ksh, bash and zsh). $HOME/.profile, also known as ~/.profile, is run exactly once per session -- when you login. As it runs after system wide /etc/profile script, the typical thing you want to do in this script is set, or modify, environment variables. If you set a shell option or alias in this script, it will not be propagated to a subshell.

Like /etc/profile, ~/.profile runs automatically at startup, and it can be rerun after modification using the source command.

97 questions
3
votes
1 answer

Python and IPython paths differ

I'm working on a server that I don't have admin privileges to so I've installed packages locally pip --user. In order to get python to see this path I added this to my .profile: export…
aleph4
  • 708
  • 1
  • 8
  • 15
3
votes
2 answers

creating an alias in ubuntu , in .profile

I can't figure out why this simple alias isn't work. I've read online an example on creating it and don't know where I'm going wrong... I've added the following to my .profile file at the bottom: alias profile='sudo nano ~/.profile' When I type in…
d-_-b
  • 21,536
  • 40
  • 150
  • 256
3
votes
2 answers

Eclipse does not recognize environment variables

Eclipse is completely ignoring all my environment variables, for example it's version my path…
1dayitwillmake
  • 2,269
  • 3
  • 26
  • 35
2
votes
2 answers

Tilde Expansion Doesn't Work When I Logged Into GUI

I'm using Ubuntu 11.10 and I have a strange problem. I have a few exports in my .profile file: export ANDROID_SDK_ROOT=~/workspace/android-sdk-linux_x86 export ANDROID_NDK_ROOT=~/workspace/android-ndk-r7 etc... However, when I log on into GUI, open…
Brian Park
  • 2,557
  • 22
  • 21
2
votes
3 answers

Unix: making change to .profile file

I am running MAC OS X. I added a new alias to my .profile. Now, when I open a terminal window, I get a message saying that the alias cannot be found. Do I have to do some sort of exporting to get the change to my .profile to take affect? As…
well actually
  • 11,810
  • 19
  • 52
  • 70
2
votes
2 answers

export PS1 not working

I am setting the following in my users .profile file to display the last 3 directories in PWD but it's still only showing the home directory. Not sure what is wrong with this. Can anyone help, please? me='$(whoami)' function PWD { pwd | rev| awk -F…
user3164720
  • 73
  • 1
  • 7
2
votes
2 answers

PATH is not updated when I login

I am one of the users of a lab computer. I want PATH to be: PATH=/home/gsamaras/mpich-install/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games instead of this: PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games For that…
gsamaras
  • 71,951
  • 46
  • 188
  • 305
2
votes
1 answer

Where is my $PATH set?

I'm trying to add a directory to my $PATH in mac OSX. echo $PATH produces: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin logged in as user and doing: vim ~/.profile shows a different set of paths and adding to it…
2
votes
1 answer

standardizing prompts across shells in cygwin

I'm having a heck of a time standardizing my prompts across the different shells I have installed for cygwin. Installed shells: bash (default login shell) sh csh (tcsh, actually) ksh zsh My prompt is standardized across bash, csh, and zsh, but I…
nullrevolution
  • 3,937
  • 1
  • 18
  • 20
2
votes
1 answer

Get a "git command not found" error on mac though .profile file is updated

I have read this thread when I got the the git: command not found (on OS X 10.5) error which basically said to update ~/.profile file with this phrase: export PATH=$PATH:/usr/local/git/bin I did that and it didn't work. but if I just write this…
Alon
  • 7,618
  • 18
  • 61
  • 99
1
vote
1 answer

Linux: setting environment variable with parts of another environment variable

I have an environment variable $GOPATH set in ~/.profile: export GOPATH=$HOME/gopkgs:$HOME/code/go Now I want to use $GOPATH to add the ./bin sub-directory of the two folders to $PATH, preferably in ~/.profile as well. I am trying: export…
1
vote
2 answers

Unable to source .profile without .zshrc

I have the following lines in my .zshrc source /etc/profile source $HOME/.profile My .profile is not loaded without them, although .profile should be loaded by default in Unix systems. How can you load .profile without sourcing it at .zshrc?
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
1
vote
0 answers

Go command works in VS Code Terminal but doesn't in Server Command Line

I have installed Go1.14.3 on my remote server which is on a private network. When I remote SSH my VS Code to that server to work on my Go Project located at ~/BBS/r1rm/tools/DSMigrateWeb, I can see Go1.14.3 in the VS Code taskbar. Even when I run go…
1
vote
0 answers

Creating decent julia's environment variable paths on UNIX-like system using XDG specs to avoid ~/.julia

As a brand-new julia programmer, I am striving to tidy up my $HOME dir in order to avoid bloating it up with a tons of dotfiles, and at same time, define sane paths to julia using XDG Base Directory Specification. The steps defined in the Official…
Rubem Pacelli
  • 332
  • 2
  • 12
1
vote
1 answer

Shell not recognizing aliased commands

I am attempting to track down how a Wordpress site keeps getting hacked, and one of the things I am trying to track is which files are being hit by the "touch" command to forge the last_modified dates (which many hacks do to hide themselves and is…
Michael VanDeMar
  • 157
  • 1
  • 1
  • 10