Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

In your question, you refer to http://stackoverflow.com/questions/902946/https://stackoverflow.com/questions/902946/ as recommending not to source, when the accepted answerthe accepted answer prescribes to

  • Put my PATH setup into a .profile file (because I sometimes use other shells)

  • Put my Bash aliases and functions into my .bashrc file

  • Then use this [EDITED: snip code-comments]:

    .bash_profile:

      #!/bin/bash
      # echo "Loading ${HOME}/.bash_profile"
      source ~/.profile # Get the paths
      source ~/.bashrc  # get aliases
    

Putting it all in .profile did not work for me on Linux Mint. Using .bashrc worked fine.

In your question, you refer to http://stackoverflow.com/questions/902946/ as recommending not to source, when the accepted answer prescribes to

  • Put my PATH setup into a .profile file (because I sometimes use other shells)

  • Put my Bash aliases and functions into my .bashrc file

  • Then use this [EDITED: snip code-comments]:

    .bash_profile:

      #!/bin/bash
      # echo "Loading ${HOME}/.bash_profile"
      source ~/.profile # Get the paths
      source ~/.bashrc  # get aliases
    

Putting it all in .profile did not work for me on Linux Mint. Using .bashrc worked fine.

In your question, you refer to https://stackoverflow.com/questions/902946/ as recommending not to source, when the accepted answer prescribes to

  • Put my PATH setup into a .profile file (because I sometimes use other shells)

  • Put my Bash aliases and functions into my .bashrc file

  • Then use this [EDITED: snip code-comments]:

    .bash_profile:

      #!/bin/bash
      # echo "Loading ${HOME}/.bash_profile"
      source ~/.profile # Get the paths
      source ~/.bashrc  # get aliases
    

Putting it all in .profile did not work for me on Linux Mint. Using .bashrc worked fine.

Source Link
serv-inc
  • 660
  • 5
  • 16

In your question, you refer to http://stackoverflow.com/questions/902946/ as recommending not to source, when the accepted answer prescribes to

  • Put my PATH setup into a .profile file (because I sometimes use other shells)

  • Put my Bash aliases and functions into my .bashrc file

  • Then use this [EDITED: snip code-comments]:

    .bash_profile:

      #!/bin/bash
      # echo "Loading ${HOME}/.bash_profile"
      source ~/.profile # Get the paths
      source ~/.bashrc  # get aliases
    

Putting it all in .profile did not work for me on Linux Mint. Using .bashrc worked fine.