16

Mac mini 环境搭建

 3 years ago
source link: https://dong4j.github.io/views/mac/2018/11162015.html#%E5%AE%89%E8%A3%85-powerlevel9k-%E4%B8%80%E4%B8%AA%E7%BE%8E%E8%A7%82%E8%80%8C%E5%8F%88%E5%AE%9E%E7%94%A8%E7%9A%84-zsh-%E4%B8%BB%E9%A2%98
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Mac mini 环境搭建


dong4j 11/11/2018 macOS

记录 mac mini 开发环境的搭建过程

# 系统设置

# 修改 Launchpad 图标大小

行:
defaults write com.apple.dock.springboard-rows -int 7  

列:
defaults write com.apple.dock.springboard-columns -int 9

重启 dock

恢复:
defaults write com.apple.dock.springboard-rows default  
defaults write com.apple.dock.springboard-columns default
killall dock


defaults write com.apple.dock springboard-columns -int 11;defaults write com.apple.dock springboard-rows -int 7;defaults write com.apple.dock ResetLaunchPad -bool TRUE;killall Dock
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

# xxx.app已损坏,打不开.你应该将它移到废纸篓

sudo spctl --master-disable

# Mac 三指拖动设置

  1. 找到系统偏好设置 中的辅助功能

这里写图片描述

  1. 选中鼠标和控制板 -> 触控板选项

这里写图片描述

  1. 勾选启用拖移 -> 好

这里写图片描述

设置以上步骤就可以用三指自由拖动窗口了.

# JDK

# ssh

# brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 

# zsh

# oh-my-zsh

# IDEA

# Docker

# surge

brew install libfaketime
FAKETIME_STOP_AFTER_SECONDS=30 faketime '2007-01-01 00:00:00' /Applications/Surge.app/Contents/MacOS/Surge &

export https_proxy=http://127.0.0.1:6152;export http_proxy=http://127.0.0.1:6152;export all_proxy=socks5://127.0.0.1:6153

# 安装 code 命令

在 vscode 下通过快捷键 shift + command + p 运行命令 shell code

# 安装zsh-syntax-highlighting语法高亮插件

安装zsh-syntax-highlighting语法高亮插件

官网: https://github.com/zsh-users/zsh-syntax-highlighting

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git 
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
source ~/.zshrc

# 安装 Powerlevel9k --- 一个美观而又实用的 ZSH 主题

https://www.jianshu.com/p/f84cf6132d1e

https://mp.weixin.qq.com/s/tWrxxrRyKAGohJfq8LUAGQ

git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
ZSH_THEME="powerlevel9k/powerlevel9k"
# clone
git clone https://github.com/powerline/fonts.git
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
1
2
3
4
5
6
7
8

# 导出 iterm 配置

https://www.jianshu.com/p/c251d26374c5

# 自动提示插件

zsh-autosuggestions


Recommend

  • 14
    • quangelab.com 3 years ago
    • Cache

    Mac-go语言环境搭建

    Mac-go语言环境搭建 mac上会默认安装brew,但是版本一般比较低,这时候你可以执行brew update,如果一直没有反应,建议重新安装brew。 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Home...

  • 5

    我所使用的操作系统是 Mac OS X Yosemite,自带 Apache 和 PHP,所以不用安装,只需稍微修改一下配置文件即可。 启动 Apache 打开终端,输入 sudo apachectl start 后即可启动 Apache。访问 http://localhost/ 会看...

  • 5
    • www.xuanyusong.com 2 years ago
    • Cache

    WordPress本地Mac环境搭建与测试

    WordPress本地Mac环境搭建与测试 每次升级wordpress版本都很痛苦,比如主题、插件与新版本的兼容性问题,写下这篇文章记录下...

  • 2

    Lua一日游:(1) Mac环境搭建与基本语法 Published at: 2014-03-09   |   Reading: 486 words ~1min   |   PV/UV: 5/5 ...

  • 2
    • www.taoweng.site 2 years ago
    • Cache

    Mac写作环境搭建

    写作是我一直都提倡每个人去做的一件事情,也许你是通过写作来进行总结,也许你是通过写作生计,也许像我一样写文章提升自己的影响力,不管怎么样,工欲善其事必先利其器,今天我将两年以来最好用的一套写作软件配置介绍给大家。 在这篇文章中你可以了解...

  • 2
    • sevming.github.io 2 years ago
    • Cache

    Mac 下 Homebrew 搭建 PHP 开发环境

    Mac 下 Homebrew 搭建 PHP 开发环境 发表于 2021-07...

  • 3
    • researchlab.github.io 2 years ago
    • Cache

    mac 利用minikube搭建k8s环境

    在mac上利用minikube 搭建k8s环境或多或少会因为pull镜像失败而搭建不成功, 本文介绍两种在mac上利用minikube 搭建k8s环境的方法; 一种是通过VPN翻墙利用官方minikube 搭建k8s 环境, 另外一种是借助阿里云的minikube版本来搭建k8s环境; 利用官方miniku...

  • 1
    • 3wapp.github.io 2 years ago
    • Cache

    MAC搭建PHP调试环境

    MAC搭建PHP调试环境 mac 不推荐使用这种方式,更好的是使用docker的方式来搭建调试环境。 使用Docker搭建php调试环境,支持gdb, xdebug, vld等工具调试php。 1. 源码安装 1.1. 获取源码

  • 4

    除了能在AppStore下到或者可以轻易获取的工具,我的iOS开发环境还需要以下环境支持: homebrew cocoapods fastlane xcode的arm64模拟器 homebrew原始的写法因为无法访问raw.git...

  • 4

    Mac mini 搭建外网可访问的简易 NAS 2022-08-08 一般情况下我都是把影视资源放在网盘上, 第一是网盘空间大...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK