How to make OS X to read .bash_profile not .profile file

后端 未结 6 1110
野性不改
野性不改 2020-12-02 06:53

I have read so many suggestions about, not putting your customization aka commands in \".profile\" file. Rather, create a .bash_profile for yourself and add your alias and e

6条回答
  •  北海茫月
    2020-12-02 07:38

    You can use zsh to fix the problem.

    The Z shell (also known as zsh) is a Unix shell that is built on top of bash (the default shell for macOS) with additional features. It's recommended to use zsh over bash.

    Installation

    1. Install zsh using Homebrew: $ brew install zsh
    2. Install Oh My Zsh: $ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    3. Move to .bash_profile setting .zshrc file
    4. To apply the changes you make you need to either start new shell instance or run: source ~/.zshrc

提交回复
热议问题