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 |
22
votes
Accepted
Terminal Tab Title after SSH Session
Since macOS Catalina 10.15, the default interactive shell is zsh.
zsh offers the precmd function which executes before each prompt.
https://zsh.sourceforge.io/Doc/Release/Functions.html#index-precmd
Add … the following to your ~/.zshrc file.
precmd() { eval "echo -ne '\033]0;${USER}@${HOST}\007'" }
Before macOS Catalina 10.15, the default interactive shell was bash. …
1
vote
On my Intel Mac, I upgraded brew and cannot use Terminal anymore
shell window
Mine defaulted to the crippled "zsh" so run "chsh -s /bin/bash"
et viola you're good to go again, albeit with a very, very old bash. … Now, to fiddle the system so it uses a current bash without dying the next time homebrew updates it. …
15
votes
Accepted
What does Cmd + K do in the Terminal?
The default zsh (and bash) setup will show the last commands when you press up arrow, you won't get the results that used to be shown back. …
1
vote
1
answer
58
views
SFTP login to MacOS 15 fails with "Message too long"
EDIT I
Indeed, as suggested below, bash on MacOS 15 prints some stuff upon login:
$ ssh [email protected]
Password:
Last login: Wed Oct 9 09:18:06 2024
The default interactive shell is now zsh. … I don't want to switch to zsh. I searched through ~/.bash* and /etc/bash* but didn't find anything that was printing that message. Anyone know how to disable it? …
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) …
208
votes
5
answers
92k
views
Suppressing "The default interactive shell is now zsh" message in macOS Catalina
I know Catalina uses zsh as the default login shell and interactive shell, but it is very annoying when I open iTerm.app or run command with /bin/bash, it shows verbose message like below:
$ /bin/bash … The default interactive shell is now zsh. …
-1
votes
default Nano Editor in MacOS is scrambling text display, not displaying text correctly with ...
for me, was to download the Homebrew version of nano editor, then put it first in my $PATH or create an alias for the homebrew version of nano.
1) Check to be sure your version of nano is the Mac OS default … If you did this step, you are done and don't need to do step 4.
4) Create a bash or zsh alias of the Homebrew nano.
vim ~/.bash_aliases
or
vim ~/.zsh_aliases
Copy and paste this to the bottom of the page …
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? …
0
votes
option+left and option+right skip special characters
word-style was including the following in my .zshrc and restarting the terminal (or running zsh):
# $HOME/.zshrc
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
# Bash-like navigation … alphanumerics only
(n)ormal: Word characters are alphanumerics plus $WORDCHARS
(s)hell: Words are command arguments using shell syntax
(w)hitespace: Words are whitespace-delimited
(d)efault: Use default …
2
votes
1
answer
354
views
Automator script error -212
Im on an intel macOS Catalina and I am trying to create a automation using apple script to run a command in zsh terminal. … The command is to set new defaults for my bash profile and it works perfectly when isolated, but if I put it in the automator script and make the shortcut visible at the dock, it throws an error. …
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. …
16
votes
Accepted
Why Mac Terminal remembers two consecutive commands when they are same?
Using Zsh? … While this question centered around Bash, it’s prudent to include the Zsh shell as it’s the default Shell for macOS Catalina and newer
In the .zshrc file and the following:
setopt HIST_EXPIRE_DUPS_FIRST …
1
vote
How to change the created/modified/access dates on a folder of files?
To run more complex code, use a for loop.
mycommand *
for x in *; do …; done
To operate on files in subdirectories as well, in zsh or modern bash (from Brew/MacPorts/Fink/…) but not in /bin/bash, use … In zsh, this is easy with the glob qualifier my+4 to only match files modified at least 4 years ago. …
0
votes
Completely clear all output from a Terminal window
There is an alternative way to do this in your shell: in bash you can use Ctrl+Meta(Option)+L to clear all scrollback and screen("clear-display"). zsh however by default does not clear scrollback when …
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. …