赞
踩
[root@centos7 /]# vim ~/.bash_profile
export iterm2_hostname=192.168.229.150:22
[root@centos7 /]# source ~/.bash_profile
至此, 安装及使用演示完成.
1. 找到并删除 shell Integration 文件
➜ ~ ll -a | grep .iterm2
drwxr-xr-x 15 dooo staff 480B Oct 27 14:25 .iterm2
-rwxr-xr-x 1 dooo staff 6.7K Oct 27 14:25 .iterm2_shell_integration.zsh
➜ ~ rm .iterm2_shell_integration.zsh
2. 删除 shell Integration 下载时自动配置的环境
shell 为 zsh 在 ~/.zshrc 中, shell 为 bash 在 ~/.bashrc 中, 删除如下命令
➜ ~ vim ~/.zshrc
test -e /Users/dooo/.iterm2_shell_integration.zsh && source /Users/dooo/.iterm2_shell_integration.zsh || true
至此, 卸载完成.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。