Reseting Bash

I cant find to delete ~/Library/Preferences/com.apple.Terminal.plist to reset my bash on BigSur.

Can you please guide me?


In essence,


I want to reset my shell startup configuration on BigSur.


Posted on Dec 17, 2020 6:56 AM

Reply
7 replies

Dec 23, 2020 3:28 PM in response to erenaktas

The Zsh shell does not use Bash dot files (e.g. ~/.bashrc, ~/.bash_profile, etc.). Zsh uses its own dot file (~/.zshrc) located in your home directory, and it does not exist by default, so you have to create it with a text editor.


At minimum, it might look like the following:


export PATH=".:$HOME:$PATH"
# if using any added tools in /usr/local/bin whose name may conflict with any in $PATH
# export PATH=".:$HOME:/usr/local/bin:$PATH"
PS1="%m: %~ %% "
# for command-line editing using vi/vim syntax
bindkey -v

Once you have saved this file in your home directory as .zshrc, you can invoke those exports to the current Zsh shell as:


source ~/.zshrc


and subsequently, everytime you open a new Terminal window, Zsh will process the contents of that file.

Dec 17, 2020 8:51 AM in response to erenaktas

erenaktas wrote:

I cant find to delete ~/Library/Preferences/com.apple.Terminal.plist to reset my bash on BigSur.
Can you please guide me?

In essence,

I want to reset my shell startup configuration on BigSur.



To see you current shell:

 echo $SHELL



To see your options:

 cat /etc/shells



To change shells, for ex. bash:

chsh -s /bin/bash


To change shells, for ex. zsh:

chsh -s /bin/zsh



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Reseting Bash

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.