Skip to content

appleboy/macbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 

Repository files navigation

Macbook tips

Some tips and command for MacOS.

macos

Command

Install Homebrew First

See the homepage.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install git bash-completion

Add bash-completion to your ~/.bash_profile or .extra

[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion

create new folder in Desktop

mkdir ~/Desktop/screenshots/

Copy and paste this command to the terminal window:

defaults write com.apple.screencapture location ~/Desktop/screenshots/

Monospaced font with programming ligatures: FiraCode

Use brew and cask: Not officially supported, might install outdated version

brew tap homebrew/cask-fonts
brew install font-fira-code --cask

screenshot: see the != symbol

firacode

Setting the Mac hostname or computer name from the terminal

See the reference. change the primary hostname of your Mac:

scutil --set HostName <new host name>

Main font-bundle for sketch icon-font plugin

  • FontAwesome
  • Material Design Icons
  • Ion Icons
  • Simple Line Icons (@bohn002)
  • Ant Design Icons

See the detail

font

jq is a lightweight and flexible command-line JSON processor. Try it online.

jq_command

IDE

Tips

Show all filename extensions in Finder

See the following screenshots:

finder

How to change the ScreenShot Keyboard Shortcut

You can see the reference.

shortcut_001

shortcut_002

Change the Shell in Mac OS X Terminal

You can see the reference.

open the terminal app and select the preferences

terminal_001

terminal_002

Using a Windows PC Keyboard on Mac with Remapped Windows & ALT Keys

See the reference

keyboard_01

  1. Select your windows keyboard.
  2. Click the dropdown next to OPTION Key and select Command
  3. Click the dropdown next to COMMAND Key and select Option

keyboard_02

Change default shell in terminal (iTerm2)

iterm2

chsh -s /bin/bash

See Use zsh as the default shell on your Mac

Tmux scrollback in terminal (iTerm2)

You can copy my .tmux.conf config file and update the profile of iTerm2 as following screenshot:

iterm2

Native Sierra-tabs on VSCode

See the issue comment

vscode 01

vscode 02

See Use tabs in windows on Mac

native tab

Change keyboard mapping for windows keyboard

See the solution.

keyboard

Change Hot keys in iTerm2

Go to iTerm Preferences → Profiles, select your profile, then the Keys tab. Click Presets... and choose Natural Text Editing. See tbe reference.

keyboard

Turn on three finger drag for your Mac trackpad

drag01 drag02

Change Spodlight shortcut key

spotlight

Releases

No releases published

Packages

No packages published