Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bash .profile not loading

I'm not sure what's happened but my ~/.profile is no longer loading.

Can anyone see something wrong with the following?

export PS1="\u@local [\w]# "
export EDITOR="subl -w"
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced

alias vst="ssh -i ~/.ssh/vst root@vst"

I know for a fact using that PS1 like I am attempting to do it should be doing Peter@local [~/path/to/file]# but it's not.

Any ideas?

like image 710
Peter Avatar asked Jul 16 '12 04:07

Peter


People also ask

How do I run a .profile file in Linux?

profile file is hidden, use the ls -a command to list it. After the login program adds the LOGNAME (login name) and HOME (login directory) variables to the environment, the commands in the $HOME/. profile file are executed if the file is present.

Where is bash_profile in mint?

bash_profile , ~/. bash_login etc. bash_profile file is located in the current user home directory as a hidden file.

Where is bash_profile in Linux?

The . bash_profile is used for customizing the user configuration settings. This file is located in the home directory and is mostly hidden.

Which is better bash or zsh?

Zsh is more interactive and customizable than Bash. Zsh has floating-point support that Bash does not possess. Hash data structures are supported in Zsh that are not present in Bash. The invocation features in Bash is better when comparing with Zsh.


1 Answers

Does ~/.bash_profile or ~/.bash_login exist? If so, that'll be used instead of ~/.profile.

like image 113
Gordon Davisson Avatar answered Sep 21 '22 17:09

Gordon Davisson