加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

test

发布时间:2020-12-16 01:41:34 所属栏目:安全 来源:网络整理
导读:Mac 基础配置 Homebrew常用命令 官网安装 Homebrew http://mxcl.github.com/homebrew/ 前言 包管理软件 Win: 360软件管家 Debian/Ubuntu: apt包管理系统 Redhat/Fedora: yum包管理系统 Mac OS X: Macports,Fink,AppStore 以及 Homebrew 使用方法 brew -v 查

Mac 基础配置

Homebrew常用命令

官网安装 Homebrew

http://mxcl.github.com/homebrew/

前言

包管理软件

Win: 360软件管家

Debian/Ubuntu: apt包管理系统

Redhat/Fedora: yum包管理系统

Mac OS X: Macports,Fink,AppStore

以及 Homebrew

使用方法

brew -v 查询Homebrew版本
brew -h brew帮助
brew update 更新Homebrew
brew install 安装任意软件
brew uninstall 卸载任意软件
brew search 查询任意包
brew list 列出安装列表
brew info 查看任意包内容信息
brew upgrade 更新任意包
brew cleanup 删除具体旧软件
brew cleanup 删除所有旧软件
brew outdated 已安装的包是否需要更新

item2+oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

chsh -s /bin/zsh. # 命令航切换bash
iterm的perference->profiles->commond 设置成/bin/zsh # iterm2 界面手动切换

vi ~/.zshrc
source ~/.zshrc
cat /etc/shells

Iterm2 使用技巧

设置全局打开快捷键

Perferemance -> Keys ->Hotkey -> show/hide all windows with a system-wide hotkey

command + . # 设置快捷键 打开iterm2
command + d # 打开多个terminal
command + shift + d # 垂直打开多个terminal

zsh 插件配置

目前已经有的自带插件在官网Github中可以看到,https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins。
凡是这里有的,都可以立刻生效。

git 默认自带
zsh-syntax-highlighting 语法高亮
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

将zsh-syntax-highlighting 下载到zsh 的plugins 目录中

plugins=(其他的插件 zsh-autosuggestions)
zsh-autosuggestions 自动建议
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
plugins=(其他的插件 zsh-autosuggestions)
sublime 默认

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读