zshrc

Problems using zsh with Catalina, Python/Python3, pip/pip3, PATH, zshrc, etc

早过忘川 提交于 2021-02-17 21:30:06
问题 I recently updated to Catalina and the default zsh. I probably messed up paths during the transition, and I'm currently trying to sort out the locations of Python3.7, pip3, the command-line PATH and my zshrc file. It looks as if there are potentially redundant files contained within /usr/bin, /usr/local/bin, /usr/local/Cellar/python and /Users/[user]/.local/bin The following are reproductions of commands: $ which python3 /usr/bin/python3 $ which python /usr/bin/python $ which pip pip not

Problems using zsh with Catalina, Python/Python3, pip/pip3, PATH, zshrc, etc

笑着哭i 提交于 2021-02-17 21:29:18
问题 I recently updated to Catalina and the default zsh. I probably messed up paths during the transition, and I'm currently trying to sort out the locations of Python3.7, pip3, the command-line PATH and my zshrc file. It looks as if there are potentially redundant files contained within /usr/bin, /usr/local/bin, /usr/local/Cellar/python and /Users/[user]/.local/bin The following are reproductions of commands: $ which python3 /usr/bin/python3 $ which python /usr/bin/python $ which pip pip not

Shortening my prompt in Zsh

放肆的年华 提交于 2020-06-24 08:24:05
问题 I'm having a lot of trouble getting zsh to shorten my prompt. I'm currently using zsh with the agnoster theme and oh-my-zsh package manager. My prompt currently gets annoyingly long during work, usually around 110 characters, taking up the entire length of my terminal, which is just not very aesthetically pleasing. I've looked at a few other people's .zshrc's and attempts to modify their prompt, but nothing seems to work in mine. I've tried copying many, many things into my .zshrc and have

echo $JAVA_HOME returns blank in MacOS catalina despite having set it properly in zshrc

我的未来我决定 提交于 2020-06-17 15:47:55
问题 I a using the latest MacOS catalina(10.15.4) and using .zshrc for my profile as latest version of mac deprecated the bash shell, This is the follow-up question of my previous unanswered question on not able to change the default java version to 1.8 using jenv. When I was trying to debug more found my echo $JAVA_HOME always returns blank, despite having set it in following manner. export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) And export JAVA_HOME=/Library/Java/JavaVirtualMachines/amazon

Echo all aliases in zsh

▼魔方 西西 提交于 2020-06-08 12:38:17
问题 Is it possible to force zsh to echo the actual commands referred to by all aliases when they are used? For example, say that I have the following aliases set: # List direcory contents alias lsa='ls -lah' alias l='ls -la' alias ll='ls -l' When I execute them I would like to see each of them print the actual command that's executed. For example, I would like to see the following: $ ll executing: 'ls -l' total 0 -rw-r--r-- 1 person staff 0 Feb 15 13:46 cool.txt -rw-r--r-- 1 person staff 0 Feb 15

pyenv giving shopt command not found error on macos

匆匆过客 提交于 2020-05-15 05:41:47
问题 I have been using pyenv for managing python versions and virtual environments on my mac for some time now. Recently I reinstalled pyenv and since then on every pyenv command I try to run, I get the following error /usr/local/bin/pyenv:94: command not found: shopt My default shell is the latest MacOS 's default shell i.e. zsh . On searching for the fix, I found out it has something to do with bash interfering with the zsh . My default shell is zsh in settings, the contents of ~/.bash_profile ,

oh-my-zsh not applying themes

荒凉一梦 提交于 2020-03-21 21:51:09
问题 I just set up zsh together with oh-my-zsh . But there's a bit of strange behavior that I cannot understand. If I restart Terminal (or iTerm 2––the behavior is the same in either) the theme specified in ~/.zshrc is not loaded. I need to do source ~/.zshrc for it to happen. If I echo $ZSH_THEME I get the theme I specified in ~/.zshrc . (And if I add echo "I'm loading it." to the bottom of ~/.zshrc , for example, I get the expected message upon opening a new window, etc.) This question is very