Git Product home page Git Product logo

macbook's Introduction

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

macbook's People

Contributors

appleboy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.