Skip to content

Instantly share code, notes, and snippets.

@khiav223577
Last active April 16, 2017 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khiav223577/858b3fb04f91f6d0f83f96407d32524c to your computer and use it in GitHub Desktop.
Save khiav223577/858b3fb04f91f6d0f83f96407d32524c to your computer and use it in GitHub Desktop.
mac 的各種設定

Commands

顯示Library
chflags nohidden ~/Library
取消dock的延遲
defaults write com.apple.Dock autohide-delay -float 0 && killall Dock
還原dock的延遲
defaults delete com.apple.Dock autohide-delay && killall Dock
防止chrome不小心誤操作,跳到上/下一頁
defaults write com.google.Chrome.plist AppleEnableSwipeNavigateWithScrolls -bool FALSE
git config core.ignorecase false
讓Finder顯示完整路徑名字
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
電腦名字
sudo scutil --set HostName name-you-want
顯示隱藏檔案:
defaults write com.apple.finder AppleShowAllFiles TRUE;\killall Finder
不顯示隱藏檔案:
defaults write com.apple.finder AppleShowAllFiles FALSE;\killall Finder
### Google Drive 簡體改繁體
defaults write com.google.GoogleDrive AppleLanguages '("zh-TW")'

pip

sudo easy_install pip

brew

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

mysql

brew install mysql
mysql.server start
mkdir -p ~/Library/LaunchAgents
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents

mongodb

環境變數 
echo "export PATH=$PATH:/Users/khiav223577/mongodb/bin" > .bash_profile
source ~/.bash_profile

系統偏好設定

  觸控式軌跡板
    取消「捲動方向:自然」
    取消『智慧型縮放」
    勾選「點一下來選按」
    勾選「三指拖曳」
  鍵盤
    鍵盤
      使用所有F1、F2等按鍵作為標準功能鍵
    快速鍵
      Finder
        於此建立新的終端機作業
      Google Chrome
        重新載入此網頁
  Dock
    自動隱藏及顯示Dock
    取消dock的延遲
      defaults write com.apple.Dock autohide-delay -float 0 && killall Dock

Terminal

  設定
    鍵盤
      更改option left為ctrl + a
      更改option right為ctrl + e
看commands history
open /Users/khiav223577/.bash_history 

karabiner

  Fn to Command_L
  Use F2 to Rename
  Return Key Opens a file
  cmd+left/right to begining/end
  Key Repeat: 200 + 15x

圖片壓縮

brew install jpegoptim
find . -name "*.JPG" -exec jpegoptim {} -f -m70 -p \;

XtraFinder

  分頁
    分頁
    使用相同路徑開始新分頁
    較窄的分頁標籤
    選取下一個分頁
    選取前一個分頁
  功能
    剪下/貼上
    按倒退鍵:返回上一頁
    隱藏右鍵選擇中的[分享]選項
  新增項目至Finder選單
    於此建立新的終端機作業

Xee

  Formats - Select all
  Keyboard - Next Image/ Previous Image

Ntu VPN

www.lib.ntu.edu.tw/network

新自然輸入法

sublime

Seti_UI Settings

{
  "color_scheme": "Packages/Seti_UI/Scheme/Seti.tmTheme",
  "default_encoding": "UTF-8",
  "ignored_packages":
  [
    "Vintage"
  ],
  "theme": "Seti.sublime-theme",
  "auto_match_enabled": false,
  "Seti_no_bar_undertabs": true,
  "Seti_tabs_small": true,
  "ensure_newline_at_eof_on_save": false,
}

Key Bindings

[
  { "keys": [""], "command": "next_bookmark" },
  { "keys": ["f2"], "command": "toggle_side_bar" },
  { "keys": ["super+shift+d"], "command": "find_under_expand" },
  { "keys": ["super+d"], "command": "duplicate_line" }
]

Other Softwares

thefuck MPlayerX Welly

google drive dropbox teamviewer skype

rubymine github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment