Code Monkey home page Code Monkey logo

macos-wiki's Introduction

macos-wiki

This is a collection of my personal dotfiles and knowledge about macOS.

Desktop environment

To transform MacOS to normal daily system we need to install some apps, which will improve window management, input system and external display.

Apps

  • Rectangle Will add support for dragging windows to the edges of the screen.
brew install --cask rectangle
  • MonitorControl Will add the ability to change external monitor brightness/volume using keyboard keys
brew install --cask monitorcontrol
  • Mos Will improve mouse scrolling with ability to blacklist some apps.
brew install --cask mos
  • AltTab Will add windows-like alt-tab menu which is more convenient than macOS native menu.
brew install --cask alt-tab
  • Karabiner-Elements Is a powerful utility to customize keyboard. You can change shortcuts and reassign some keys (like swap fn and ctrl).
brew install --cask karabiner-elements
  • Pock (For MacBooks with TouchBar) Will provide widget to move dock into TouchBar.
brew install --cask pock
  • OpenInTerminal Will add context menu item for Finder to open folder in terminal/vscode/etc.
brew install --cask openinterminal
  • Stats Will add menu bar system monitor widgets
brew install --cask stats

Install all apps

brew install --cask rectange monitorcontrol mos alt-tab karabiner-elements pock openinterminal stats

Terminal

Fish is a powerful user-friendly shell with convenient extension support and useful features. To manage plugins you can also install fisher

brew install fish fisher

Plugins

  • Tide Is the ultimate Fish prompt
fisher install IlanCosman/tide@v6

Set up with default terminal app

Change your shell entrypoint to /opt/homebrew/bin/fish terminal1.png Add -fish to black list Ask before closing terminal2.png Edit ~/.config/fish/config.fish and add these lines to add homebrew packages to PATH

~/.config/fish/config.fish

if status is-interactive
    eval "$(/opt/homebrew/bin/brew shellenv)"
    # Commands to run in interactive sessions can go here
end

Terminal editor

Micro Is the modern and intuitive terminal-based text editor.

brew install micro

If you want to use micro as default terminal editor, you can set environment variable in `~/.config/fish/config.fish

~/.config/fish/config.fish

if status is-interactive
    export EDITOR=micro
    eval "$(/opt/homebrew/bin/brew shellenv)"
    # Commands to run in interactive sessions can go here
end

You can set other terminal editor as default like nvim/nano/etc

export EDITOR=nvim

Virtualization

The best choice in my opinion is the VMware Fusion. It is free to personal use. If you have this annoying issue, you can fix it by disabling motionUngrab.

~/Library/Preferences/VMware\ Fusion/preferences

pref.motionUngrab = "FALSE"
pref.grabOnMouseClick = "TRUE"
pref.motionGrab = "FALSE"
... the rest of preferences

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.