All Questions
5
questions
2
votes
1
answer
8k
views
How to edit $PATH on MacOS Catalina (Zsh)?
I open terminal and use echo $PATH
I get back:
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin/
I'm confused because my .zshrc, .zsh, .bash_profile, .bashrc, and .profile all have ...
1
vote
1
answer
211
views
What is the way to set UTF-8 or other encoding in .zshrc on MacOS Catalina?
Whatever settings I put in .zshrc and source the file, nothing changes in the locale output. How do I change these settings on Catalina?
3
votes
1
answer
2k
views
Running python script without typing its `.py` extension
I'm using Zsh on MacOS Catalina.
I was reading Automate the Boring Stuff with Python and in it the author runs mapIt.py simply by typing mapit into the terminal.
In order to do this I added a ...
10
votes
4
answers
25k
views
Unable to revert default shell from zsh to bash in macOS/Catalina: "chsh: no changes made"
I have a new catalina system and need compatibility with traditional linux. bash is a must. Following various references I did
chsh -s /bin/bash
But not too happy:
(base) 19:44:28// $chsh -s /...
7
votes
3
answers
8k
views
How to correctly export env variables containing spaces in ZSH
Add an env variable containing spaces to ~/.zshrc
export SKIP="-Dskip1 -Dskip2"
export SKIP_NO_SPACES="-Dskip3"
Try to use it
set -x
mvn $SKIP $SKIP_NO_SPACES
The command that is being ...