Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

Macbook tips

Some tips and command for MacOS.

macos

Command

Install Bash git completion

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

How to Change Screenshot Save Location

  1. create new folder in Desktop
mkdir ~/Desktop/screenshots/
  1. 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 caskroom/fonts
brew cask install font-fira-code

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

Install jq command

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

About

Some tips and command for my MacOS.

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.