1、安装item2代替终端
2、item2保存远程服务器密码:
https://jingyan.baidu.com/article/e4511cf361082c2b845eaf96.html
3、使用同事写的堡垒机登陆脚本
4、设置脚本执行的快捷命令为 sentryLogin:
5、安装zsh增加颜色 之后使 .zshrc + .bash_profile 环境变量一起生效的方法:
https://blog.csdn.net/gwdgwd123/article/details/85680952
6、zsh加入idea:
7、配置 maven jdk
vi ~/.bash_profile(配置maven) //用户级别环境变量
source ~/.bash_profile
sudo vim /etc/profile(配置jdk) //这个是全局级别环境变量 需要root 所以sudo
source /etc/profile
注:
mac一般使用bash作为默认shell,其加载顺序为:
/etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc
当然/etc/profile和/etc/paths是系统级别的,系统启动就会加载,后面几个是当前用户级的环境变量。后面3个按照从前往后的顺序读取,如果/.bash_profile文件存在,则后面的几个文件就会被忽略不读了,如果/.bash_profile文件不存在,才会以此类推读取后面的文件。~/.bashrc没有上述规则,它是bash shell打开的时候载入的。