Learn MAC

1. 解決brew 和 brew cask 慢或不動的問題 


安裝brew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

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


替換成國內源:
cd "$(brew --repo)" 
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" 
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git


echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile

brew update


Let's go!

2. 解決 Macbook 連接藍牙鼠標卡頓、飄的現象 (轉載)

方法/步驟1:

打開“系統偏好設定”,然後點擊下面的“網絡”圖標,打開“網絡”設定界面。在這裏,一般會看到三個:wi-fi、藍牙、Thunderbolt 網橋三個連接。

方法/步驟2:

在“網絡”窗口的左下角,會看到三個圖標:“+”、“-”,最後一個是齒輪。點擊這個齒輪,選擇“設定服務順序”

方法/步驟3:

在彈出來的對話框中,用鼠標點按住藍牙PAN,往上拖到第一的位置,然後點擊“好”按鈕。對話框會自動收起來。

方法/步驟4:

點擊“網絡”界面右下腳的“應用”按鈕,退出“系統偏好設定”。然後滑動鼠標,就會發現鼠標比之前流暢了很多。

3. Iterm2 功能 (轉載:https://www.jianshu.com/p/4a27bb4c216c )

command + t:新建窗口
command + d:垂直分屏,
command + shift + d:水平分屏。
command + ] 和command + [ 在最近使用的分屏直接切換.
command + alt + 方向鍵:切換到指定位置的分屏。
command + 數字:切換標籤頁。
command + 方向鍵:按方向切換標籤頁。
shift + command + s:保存當前窗口快照。
command + alt + b:快照回放。

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章