聞きたいこと
どうすれば.bash_profileや.bashrcが毎回起動時に読み込まれるようにできるか
各ファイルの中身は以下のようになっています。
環境
macOS Catalina
バージョン 10.15.2
.bash_profile
alias ll='ls -la' alias ls='ls -G' export PATH=$PATH:~/.local/bin export PATH="$(brew --prefix php@7.2)/bin:$PATH" export PATH="$PATH:$HOME/.composer/vendor/bin" export PATH=$HOME/.nodebrew/current/bin:$PATH export PATH=~/.npm-global/bin:$PATH export LSCOLORS=Cxfxcxdxbxegedabagacad # added by Anaconda3 2019.03 installer # >>> conda init >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$(CONDA_REPORT_ERRORS=false '/anaconda3/bin/conda' shell.bash hook 2> /dev/null)" if [ $? -eq 0 ]; then \eval "$__conda_setup" else if [ -f "/anaconda3/etc/profile.d/conda.sh" ]; then . "/anaconda3/etc/profile.d/conda.sh" CONDA_CHANGEPS1=false conda activate base else \export PATH="/anaconda3/bin:$PATH" fi fi unset __conda_setup # <<< conda init <<< if [ -f ~/.bashrc ] ; then . ~/.bashrc fi exportが続くので以下略
.bashrc
alias ll='ls -la' alias ls='ls -G' alias relogin='exec $SHELL -l' export PATH=$PATH:/Users/xxxxx/.nodebrew/current/bin
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/01/13 12:22