Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
エイリアスを設定したいのですが、新しいターミナルを開くたびにリセットする必要がないように、それらを保持したいと思います。どうやってやるの?隠しファイルを変更する必要がありますか?
編集:私はMacを使用しています、/ etcの下にbashrcを見つけました、それは1つですか?
うん-あなたはそれを入れる必要があるでしょう~/.bash_profile:
~/.bash_profile
alias ls='ls --color=auto'
シェル/システムによって異なります。たとえば、Ubuntuのbashの場合は~/.bashrc、~/.bash_profileファイルをチェックアウトします。
~/.bashrc