1.首先在网上下载iterm2的终端编辑器,为什么我要用他呢,因为其他的人都在用 还有就是界面漂亮,要是下载的话可以我的蓝奏云上下载把
下载:https://wws.lanzous.com/iDDryh5ly9g 密码:4bgd
2.xcode在mac的商店就有
可以参考这个:https://blog.csdn.net/liyyzz33/article/details/106125144 因为mac没有安装命令,所以需要安装brew命令,要是有些人用aot-get用的习惯的话那就去查一查把,下面来说安装brew命令
/usr/bin/ruby -e “$(curl -fsSL https://gitee.com/xueweihan/codes/vfrgh7z8qcjlx1ubwt6nk71/raw?blob_name=brew_install.sh)”
执行这个就可以,网上有很多是github上的,那么时间会超时
我习惯的是ma6147的vim,要是满足不了你的需求的话你就用vimplus, 或者macvim。
直接 brew install gcc brew install g++ 本机要是有的话那就是更新
重点来了, iterm2的界面改变
brew install zsh
修改默认shell为zsh
chsh -s /bin/zsh
安装oh-my-zsh
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" ##如果不成功,请执行下面两条命令,成功了就不需要做下面两条 wget 47.93.11.51:88/install_zsh.sh bash install_zsh.sh安装zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting使用命令vim .zshrc打开.zshrc文件,找到pluguns=()这一行,将zsh-syntax-highlighting添加进去
plugins=(git zsh-syntax-highlighting)安装其他插件
mkdir ~/.oh-my-zsh/plugins/incr wget http://mimosa-pudica.net/src/incr-0.2.zsh -O ~/.oh-my-zsh/plugins/incr/incr.plugin.zsh git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions sudo apt install autojump使用命令vim .zshrc,打开后在最后插入以下内容:
autoload -U colors && colors PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%1~ %{$reset_color%}%# " RPROMPT="[%{$fg[yellow]%}%?%{$reset_color%}]" # Useful support for interacting with Terminal.app or other terminal programs [ -r "/etc/zshrc_$TERM_PROGRAM" ] && . "/etc/zshrc_$TERM_PROGRAM" source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh source /usr/share/autojump/autojump.sh source ~/.oh-my-zsh/plugins/incr/incr*.zsh安装完之后就会出现
Last login: Mon May 28 13:35:31 on ttys001 You have mail. [oh-my-zsh] Insecure completion-dependent directories detected: drwxrwxrwx 7 hans admin 238 2 9 10:13 /usr/local/share/zsh drwxrwxrwx 6 hans admin 204 10 1 2017 /usr/local/share/zsh/site-functions [oh-my-zsh] For safety, we will not load completions from these directories until [oh-my-zsh] you fix their permissions and ownership and restart zsh. [oh-my-zsh] See the above list for directories with group or other writability. [oh-my-zsh] To fix your permissions you can do so by disabling [oh-my-zsh] the write permission of "group" and "others" and making sure that the [oh-my-zsh] owner of these directories is either root or your current user. [oh-my-zsh] The following command may help: [oh-my-zsh] compaudit | xargs chmod g-w,o-w [oh-my-zsh] If the above didn't help or you want to skip the verification of [oh-my-zsh] insecure directories you can set the variable ZSH_DISABLE_COMPFIX to [oh-my-zsh] "true" before oh-my-zsh is sourced in your zshrc file. chmod 755 /usr/local/share/zsh chmod 755 /usr/local/share/zsh/site-functions就是缺权限加上就好了
conda activate and conda deactivate only work on conda 4.6 and later versions.
For conda versions prior to 4.6, run:
Windows: activate or deactivate Linux and macOS: source activate or source deactivate 退出与进入虚拟环境 conda base.
(base) yongqiang@famu-sys:~$ (base) yongqiang@famu-sys:~$ conda deactivate yongqiang@famu-sys:~$ yongqiang@famu-sys:~$ conda activate (base) yongqiang@famu-sys:~$ (base) yongqiang@famu-sys:~$ conda deactivate yongqiang@famu-sys:~$让你选择y还是n 之后就看这个博客把
https://www.bootschool.net/article/5e79aba6f60a317efe5bbbd5