New answers tagged

2 votes
Accepted

"Unsupported OS" when using `open` command on M1 Pro

Try the open application alone to see if it is the culprit (it sounds like it is). Charlie:~ sfederman$ open Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-s <partial SDK name>][-b <...
user avatar
  • 7,475
1 vote
Accepted

How can I change ZSH history to always use the -i option?

alias hi='history -i' Add this to the init file of your choice (most likely .zshrc).
user avatar
  • 85.5k
6 votes

"Unsupported OS" when using `open` command on M1 Pro

First thing is to open the app you want to see these files. open -a TextEdit Or Xcode or another app you know can open text files. Once you have an app that opens, pass the file after the name of the ...
user avatar
  • 219k
1 vote

ZSH shell setting up paths

Presumably this issue is resolved but here are a couple general tips and an alternate method. On modern MacOS versions, while in Finder, the keyboard shortcut ⌘ Command+⇧ Shift+. period will toggle ...
user avatar
  • 11
1 vote

How can I change my shell language localization on the macOS command line?

In the terminal enter export LANG=sv_SE.UTF-8 You can add that to ~/.bashrc (or ~/.zshrc for zsh) in order to change the language for all terminal sessions. All command line tools that are localized ...
user avatar
  • 1,591
1 vote

How do I switch tabs when using iTerm2 with Z shell

Latest iTerm2 From my end: OS: macOS Monterey (version 12.3.1) iTerm2 (Build 3.4.15) Use the keyboard shortcuts Command + ] Command + [ to switch to the next and previous tabs respectively
user avatar
4 votes

Why I do I see these lines in Terminal and how can I remove them?

I got the same issue, It took me long enough to understand that it is simple to resolve. During the installation of brew, we are supposed to execute this comand echo 'eval $(/opt/homebrew/bin/brew ...
user avatar
1 vote

list of characters that have to be escaped in passwords for "mount -t smbfs //username:password@..."

I finally solved the problem differently. I changed to SSH key-based authentication, which is probably even safer than a long password with many special characters.
user avatar
  • 21
0 votes

list of characters that have to be escaped in passwords for "mount -t smbfs //username:password@..."

Apple programs this into swift for which characters are allowed in the password field for a URL. Not entirely sure if this helps for the smbfs mount but it’s what I would use to have swift encode my ...
user avatar
  • 219k
1 vote
Accepted

how can I copy paths in the $PATH environment from bash to zsh?

The main thing is to run the old shell and then echo $PATH. bash echo $PATH exit At that point, you can copy that value and paste it in your zsh dot files as a comment and work on replicating the ...
user avatar
  • 219k
-1 votes

How can I set oh my zsh to be my default shell?

just go to .bashrc file, add "exec /bin/zsh" at the very bottom of the line save and run "source ~/.bashrc", it will work
user avatar
2 votes
Accepted

Most homebrew installed commands outputs "zsh: killed"

I was able to solve this problem. I suspected that some login item made my /bin/bash turn weird. So under someone's recommendation I ran mac in safe mode, and found that everything ran perfectly. Thus,...
user avatar

Top 50 recent answers are included