Web之前一直是在 Windows10 使用 scrapy ,突然转到 Mac 之后,想要新建 Scrapy 发现一直报 zsh: command not found: scrapy 的错误。几乎尝试过网上的方式之后还是不行,终端还是会出现这样的情况。 2、解决 WebAnswer #5 100 %. Your bashrc file was written for bash.zsh is not bash.. I'm surprised zsh is trying to load your .bashrc at all.. If it isn't and you are sourcing it manually (from .profile or similar). Stop doing that. Then you get to write an appropriate zsh init file instead.. If you want to use zsh then you need to use zsh and not bash.. shopt is a bash-ism. [[is a …
How to Customize the Bash Shell With shopt - How-To Geek
WebFeb 28, 2024 · /etc/profile.d/vk.sh:30: command not found: shopt This error appears only at startup and I see it only once when opening an ssh session. In my understanding, the … WebMar 23, 2024 · 1 5 What shell are you using? shopt and complete are both bash commands, and will not be available in other shells. – Gordon Davisson Mar 23, 2024 at 7:24 shell Oh My ZSH – putu eka mulyana Mar 24, 2024 at 14:39 shopt and complete are not zsh commands. .bashrc is intended to be sourced in bash. – Kamil Maciorowski Mar … su干嘛的
error when I execute the command source ~/.bashrc
WebFeb 24, 2024 · 2. Instead, open up your .bashrc, find the conda-specific lines, and copy only those lines to your .zshrc. – Charles Duffy. Feb 24 at 23:50. (...and if those lines are sourcing a file with a .bash or .sh extension and there's a file with a .zsh extension in the same place, amend them to source the .zsh file instead) – Charles Duffy. WebOct 7, 2024 · To set and unset shopt options, use the following commands: -s: Set, or enable. -u: Unset, or disable. Because some options are enabled by default, it’s also handy to check which options are on. You can do so with the -s and -u options without using an option name. This causes shopt to list the options that are on and off. Type the following: WebTo fix this problem, you need to check your login shell to make sure it's actually set to bash: chsh -l. will list the available shells, and. chsh -s /path/to/bash. will change your login … su平移命令