mac 安装工具列表
17 mweb : http://share.zhinin.com/file/9490615-468523665 | http://down.tv002.com/premium/0/2 | https://545c.com/file/19991453-476378654
adbo pdf https://www.aiweibk.com/101041.html
18 jdk
19 beyond compare. : https://macwk.com/soft/beyond-compare
20:截图 https://zh.snipaste.com/download.html
MacOS 系统命令优化
1. copy 文件名到剪切板
alias cr='/Users/tim/bin/cr.sh'
cr.sh脚本如下:
#!/bin/bash # 检查是否有传入参数 if [ "$#" -ne 1 ]; then echo "使用方法: $0 文件名" exit 1 fi
filename=$1 current_dir=$(pwd) full_path="$current_dir/$filename" # 检查文件是否存在 if [ -e "$full_path" ]; then echo "$full_path" | pbcopy echo "文件路径已复制到剪切板: $full_path" else echo "文件未找到: $full_path" fi
---------------------------------------------------
细节配置项
git config
//关闭换行符自动转换功能 避免windows下git自动将lf转换成crlf
git config --global core.autocrlf false
//开启换行符检查功能 // 拒绝提交包含混合换行符的文件
git config --global core.safecrlf true
git 多账号 : https://www.cnblogs.com/popfisher/p/5731232.html#:~:text=Windows%E4%B8%8BGit%E5%A4%9A%E8%B4%A6%E5%8F%B7%E9%85%8D%E7%BD%AE%EF%BC%8C%E5%90%8C%E4%B8%80%E7%94%B5%E8%84%91%E5%A4%9A%E4%B8%AAssh-key%E7%9A%84%E7%AE%A1%E7%90%86%201%20%E7%94%9F%E6%88%90github....%202%20%E5%90%8C%E6%A0%B7%E7%9A%84%E6%96%B9%E5%BC%8F%E7%94%9F%E4%BA%A7git.oschina....%203%20%E6%8A%8A%E4%B8%8A%E9%9D%A2%E5%BE%97%E5%88%B0%E7%9A%84%E6%96%87%E4%BB%B6%E6%8B%B7%E8%B4%9D%E5%88%B0git%E9%BB%98%E8%AE%A4%E8%AE%BF%E9%97%AE%E7%9A%84....%204,...%206%20%E6%89%93%E5%BC%80Git%20Bash%E5%AE%A2%E6%88%B7%E7%AB%AF%EF%BC%88%E7%AE%A1%E7%90%86%E5%91%98%E8%BA%AB%E4%BB%BD%E8%BF%90%E8%A1%8C%EF%BC%89%E6%89%A7%E8%A1%8C%E6%B5%8B%E8%AF%95%E5%91%BD%20...%207%20%E6%B5%8B%E8%AF%95%E6%88%90%E5%8A%9F%E4%B9%8B%E5%90%8E%E5%B0%B1%E5%8F%AF%E4%BB%A5%E5%9C%A8%E7%94%B5%E8%84%91%E4%B8%8A%E5%90%8C%E6%97%B6%E4%BD%BF%E7%94%A8git%E5%A4%9A%E5%A4%9A%E8%B4%A6%E5%8F%B7%E5%90%8C%E6%97%B6%E6%93%8D%20
idea 配置
- 设置取消crlf警告提示
file->setting 当前工程设置
文件路径显示补全
mac .bash_profile 配置如下:
export PATH=$PATH:/Users/yangming/bin
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
alias t="trans"
export PS1='[\u@$PWD]$ '
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
idea 常用代码生成模版:
vef
new mockit.Verifications(){
{
$ENDS$
}
};
logi:
private Logger logger = LoggerFactory.getLogger($CLASS_NAME$.class);
CLASS_NAME className()
logf:
logger.info("$VA1$",$ENDS$
jsf:
@JSONField(alternateNames = {"$cjvar$"}
cjvar clipboard()
expi:
new Expectations(){
{
$SELECTIONS$$ENDS$
}
};
exp:
new mockit.Expectations() {
{
$ENDS$
}
};
emplist 空的集合自动生成if代码
if($iterableVariable$ == null || $iterableVariable$.isEmpty()){
$END$
}
iterableVariable iterableVariable()
bl
if (StringUtils.isBlank($VAR$)) {
return $ENDS$;
}
VAR variableOfType("java.lang.String")
80转8080
https://www.jianshu.com/p/26ae3c5b7155
代理: https://www.charlesproxy.com/latest-release/download.do
mac 大小写提示 https://captin.mystrikingly.com/
adobe :https://www.digit77.com/macapps/adobe-for-all/#download-explan