Mac的一些使用技巧

·Finder

隱藏文件java

bash中輸入下列命令,能夠使Finder顯示隱藏文件。chrome

開啓:安全

defaults write com.apple.finder AppleShowAllFiles -bool true;killall Finder

關閉:bash

defaults write com.apple.finder AppleShowAllFiles -bool false;killall Finder

關閉dashboard:app

defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock

關閉chrome的滑動手勢字體

defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool FALSE

完整路徑google

在Finder上顯示當前文件夾的完整路徑。spa

開啓:code

defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE;killall Finder

關閉:ip

defaults delete com.apple.finder _FXShowPosixPathInTitle;killall Finder

 

·軟件安裝

MAC應用沒法打開或文件損壞,須要在『安全性和隱私』裏開啓『容許從如下位置下載的應用:任何來源』

若是沒有,終端執行下列語句:

sudo spctl --master-disable

 

·開發配置

使用ll、la、l等ls的別名命令

在用戶目錄下的配置腳本文件(~/.zshrc 、~/.bashrc 或者 ~/.bash_profile )中添加如下內容便可:

cd ~
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
source .zshrc
#source .bashrc
#source .bash_profile

查看Mac中JAVA_HOME路徑

/usr/libexec/java_home -V

 

  • 解決 mojave 關閉子像素抗鋸齒致使字體變得很細(好比vscode)

終端輸入:

defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO

恢復:

defaults write -g CGFontRenderingFontSmoothingDisabled -bool YES
相關文章
相關標籤/搜索