Git Product home page Git Product logo

Comments (5)

harshavardhana avatar harshavardhana commented on May 22, 2024

Shouldn't that be .profile on OSX? Asking because on my OSX 10.9.5 desktop, .bashrc isn't sourced when terminals are started, though .profile is.

On Yosemite 10.10 it seems to be .bashrc , perhaps it could be related to bash version on both these platforms. I will find what works for both bash versions and see which fits here.

from minio.

justinclift avatar justinclift commented on May 22, 2024

No worries. It's also possible I've modified my desktop config from default and don't remember doing so. 😉

from minio.

harshavardhana avatar harshavardhana commented on May 22, 2024

No worries. It's also possible I've modified my desktop config from default and don't remember doing so.

I will verify, thanks for your inputs @justinclift

from minio.

harshavardhana avatar harshavardhana commented on May 22, 2024

I found the problem why this happens, snippet from bash documentation

6.2 Bash Startup Files

This section describes how Bash executes its startup files. If any of the files exist but cannot be read,
Bash reports an error. Tildes are expanded in filenames as described above under Tilde Expansion
(see Tilde Expansion).

Invoked as an interactive login shell, or with --login

When Bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option,
it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it
looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes
commands from the first one that exists and is readable. The --noprofile option may be used when the
shell is started to inhibit this behavior.

When a login shell exits, Bash reads and executes commands from the file ~/.bash_logout, if it exists.

Invoked as an interactive non-login shell

When an interactive shell that is not a login shell is started, Bash reads and executes commands from
~/.bashrc, if that file exists. This may be inhibited by using the --norc option. The --rcfile file option will
force Bash to read and execute commands from file instead of ~/.bashrc.

So, typically, your ~/.bash_profile contains the line

if [ -f ~/.bashrc ]; then . ~/.bashrc; fi after (or before) any login-specific initializations.

from minio.

justinclift avatar justinclift commented on May 22, 2024

Interesting. Guess it depends which is more useful for minio then. For me at the moment, doing stuff through a login shell, it's .profile. Not sure that's going to be the case for everyone else though. 😉

from minio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.