Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
2
votes
1
answer
80
views
iterms2 sourcing bash even if zsh is default
I looks like my iterms terminal is sourcing bash before using zsh and it is doing it multiple times. I can't figure out why. … Here is my system info:
macos: 14.6.1
iterms: 3.5.4
zsh: 5.9
omz: master (c68ff8ae) …
29
votes
4
answers
42k
views
Change default shell from bash to zsh
I've tried to switch my default shell to zsh, using chsh:
chsh -s /bin/zsh
and:
chsh -s `which zsh`
Both commands ended with:
Changing shell for adamatan. … Operation is not supported by the directory node.
chsh: no changes made
How can I change my default shell in OSX Lion? …
1
vote
0
answers
381
views
Running "irb" changes my zsh to bash on iTerm2
I was just working out my installation of Ruby and RVM and playing around with irb when I suddenly notice that my window title says "bash" instead of my default zsh heading. … The (temporary) fix was simple - run chsh -s /bin/zsh, but this instance repeated the switch to bash every time I executed irb. …
1
vote
1
answer
560
views
Unable to change default shell in macOS Monterey
Default shell has been changed and the computer has been restarted.
echo '/opt/homebrew/bin/bash' | sudo tee -a /etc/shells
chsh -s /opt/homebrew/bin/bash
However, when open the terminal, it is still … zsh. …
2
votes
1
answer
3k
views
How to use zsh and bash on iTerm2 at the same time?
Zsh is better than bash(obviously), but for some reason, from time to time I have to use bash. I am wondering is there any way for me to use them together without changeing them manually? … Using zsh as default, and open another tab using different profile opening bash, though this can work, but all the configurations for bash didn't work.
So can anyone help me out here, thanks! …
1
vote
1
answer
3k
views
how can I copy paths in the $PATH environment from bash to zsh?
How can I copy all the the command paths from the bash environment $PATH variable to the zsh environment?
I'm on macOS 11.6.1 (and about to install 11.6.6). … Many of the commands I used in bash don't work in zsh (the new default for Apple's Command line shell for new accounts). How can I get started with fixing my path? …
368
votes
4
answers
285k
views
What are the practical differences between Bash and Zsh?
With the news that Catalina will default to Zsh instead of Bash, I'm finding lots of results telling me about the switch, and that it may cause problems with shell scripts, but I'm not familiar enough … My shell scripts are really not that complicated, but I've only ever used Bash on macOS and Linux - zero experience with Zsh. …
29
votes
2
answers
124k
views
How do I configure my Terminal app with bash and iTerm2 with zshell and oh my zsh?
The Terminal app uses bash by default. And I don't want to change it. However I want to configure iTerm2 with zshell and oh my zsh. and I don't want bash on it. … The instructions I checked online, make zshell default in both apps. …
7
votes
1
answer
23k
views
Big Sur switched to zsh terminal but still uses .bash_profile
New sessions also still gives this warning:
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`. … I'm starting to suspect that my default shell is in fact not zsh, but is actually still using bash.. …
1
vote
2
answers
776
views
Quiet the 'The default interactive shell is now zsh.' output [duplicate]
This question is NOT THE SAME as:
Suppressing "The default interactive shell is now zsh" message in macOS Catalina
[Restored Jul 6, 2022 at 6:07:42 PM]
Last login: Wed Jul 6 18:07:37 on console
Restored … session: Mon Apr 4 12:32:47 EDT 2022
The default interactive shell is now zsh. …
10
votes
1
answer
1k
views
Issues with Unicode symbols in some applications running in Terminal.app and iTerm2
DeoGloria:~ test$ ⚑
-bash: ⚑: command not found
bash is working as expected. … Starting default zsh, no config done
DeoGloria:~ test$ zsh
DeoGloria:~ test$ echo -e "\xE2\x9A\x91"
⚑
Showing alright. …
0
votes
3
answers
175
views
Why is bash unavailable even though installed?
Somehow running bash always runs zsh for me, even though I installed bash 5 using Homebrew and Mac (10.15) comes with bash 3.
I would still like zsh to be the default shell. … /bin/zsh
$ /bin/bash -c 'echo $SHELL'
/bin/zsh
$ /usr/local/bin/bash -c "echo $SHELL"
/bin/zsh
$ /usr/local/bin/bash -c 'echo $SHELL'
/bin/zsh
$ cat /etc/shells
# List …
2
votes
3
answers
648
views
default Nano Editor in MacOS is scrambling text display, not displaying text correctly with ...
Recently my nano editor stopped displaying text correctly using bash or zsh, and it scrambles text and doesn't properly display text.
How can I debug and fix this error? …
1
vote
0
answers
278
views
Terminal shows "active process" as "-zsh ▸ -zsh"
When I open a new Terminal tab, it shows the corresponding field as "-zsh ▸ -zsh" rather than just "zsh" by default:
My suspicion is that this is related to how this shell is launched by the Terminal … According to ps aux, it is launched as follows:
login -pfl daniel /bin/bash -c exec -la zsh /bin/zsh
My user account's shell is set to simply /bin/zsh. …
3
votes
0
answers
1k
views
After switch to zsh history not saved
I am running Mojave have changed default shell from bash to zsh. I notice history is not saved between sessions.
Following recommendations in What are the practical differences between Bash and Zsh? … I ran :
autoload -U zsh-newuser-install
zsh-newuser-install
This created the files ~/.zshrc and ~/.histfile which I did not have before but the history seems not to be updated. …