Mac在终端快速使用WebStorm 编辑器
## 在终端快速使用 WebStorm 编辑器### 设置 WebStorm 别名快捷键1. 编辑 `.zshrc` 文件。 ```sh vim .zshrc ```2. 为 WebStorm 添加别名。 ```sh alias webstorm='open -na "WebStorm.app" --args "$@"' ```3. 使更改生效。 ```sh source .zshrc ```现在,你可以在终端中快速打开 WebStorm 并进入你的项目目录:```sh# 1. 进入项目
继续阅读
使用 zip 命令循环压缩当前目录中的所有子目录
下面命令保存为(zip.sh) #!/bin/bash# 获取当前目录current_dir=$(pwd)# 遍历当前目录下的子目录for subdir in "$current_dir"/*; do if [[ -d "$subdir" ]]; then # 子目录存在时进行压缩 subdir_name=$(basename "$subdir") zip -r "$subdir_name.zip" "$subdir" fidone
继续阅读
NPM SSL Errors! code UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm 安装时证书验证错误!!!NPM的install ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURENPM SSL Errorsnpm ERR! Error: SSL Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE在确定所安装的包是安全的情况下,可以这样做(关闭npm的https)npm config set strict-ssl false开启npm config set strict-ssl true
继续阅读
解决终端compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew_cask
问题:终端一直报问题 compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew_cask 解决:若是装了brew的,有可能是缓存记录导致的;执行 brew cleanup 可以修正 原因:Homebrew 不会自动移除旧版本的软件包,需要手动执行 brew cleanup 命令才可以。如果你从来没调用过这个命令,那么它帮你释放出来的磁盘空间可能会吓到你。
继续阅读