preface
Speed up the pace of those who have just bought a MacBook. If you have experience with Linux, it will be faster.
Shortcuts article
Do system shortcuts need to be written? The official shortcut document covers general and global shortcuts for document operations, screenshots, window managers, etc
- Touchbar: safari’s touchbar can be customized, and companies like netease cloud,QQ music and VSCode all offer shortcuts to some of touchbar’s features
- Bring up Siri: Command-space, long press
- Bring up Spotlight: Command-space. (This is the default. You can go to config and turn it off for Alfred.)
A package manager
Brew is arguably the best manager for The Mac. Brew is used to install cli applications such as Redis and Node. Brew Cask is used to install GUI programs (graphical programs);
Brew can be thought of as apt-get like the Debian family or yum like the Redhat family
brew
Bash might print out a bunch of information, but I’ll delete some that aren’t necessary. Only say what’s important…
Usage:
/usr/localThe/etc/nginx » the brew Example usage: brew search [TEXT | / REGEX /] / / search package brew (info | home | options)/FORMULA... Brew install FORMULA... Brew upgrade [FORMULA...] brew upgrade [FORMULA...] // Update expired package brew Uninstall FORMULA... // Brew list [FORMULA...] // Lists installed package Troubleshooting: Brew doctor // Check whether the brew is damaged, whether the configuration file is lost, etc. brew create [URL [--no-fetch]] brew edit [FORMULA...] https://docs.brew.sh/Formula-Cookbook.html Furtherhelp: Man brew // Manual brewhelp[COMMAND] // Help brew home // open brew home pageCopy the code
What does this install? Terminal applications, such as JDK, Node, Ruby, Python,git;
I almost forgot to mention, how do you start and restart these with brew installed services? , such as Nginx,
Brew has a master controller for services; See bash print at a glance.
brew services [-v|--verbose] [list | run | start | stop | restart | cleanup] [...] Brew Services list [sudo] brew Services list List all running servicesforThe current user (or root)/sudo brew services run formula | -- all / / run the corresponding service, don't have to login! Run the service formula without starting at login (or boot). [sudo] the brew services start formula | -- all / / enable the corresponding service start the service formula immediately and register it to launch at login (or boot). [sudo] brew services stop formula|--all // Stop the service formula immediately and unregister it from launching at login (or boot). [sudo] Brew services Restart formula | -- all / / restart the corresponding service Stop (ifnecessary) and start the service immediately and register it to launch at login (or boot). [sudo] brew services cleanup // Remove all unused services.Copy the code
brew cask
This goods has indexed a lot of procedures (you can also go to submit), Google Browser, virtual machine,QQ what have.
Brew Cask installation needs to be based on BREW, the terminal to execute Brew Tap caskroom/cask;
See tap is not a familiar feeling! Sudo Add-apt-repository ppa: XXXXXX
That is, there are third-party software sources that are not in the official casK:…. Without further ado, read the help file
The brew cask crper »helpCommands: --version displays the homebrew-cask version audit verifies installability of Casks cat dump rawsourceOf the given Cask to the standard output // Print some information about your installation package, including uninstallation information!! "A great step is to cleanup cached downloads and tracker symlinks." create a great step to cleanup cached downloads and tracker symlinksinAn editor // do not use doctor checksforEdit edits the given Cask // The difference between cat and Cask is that it is the fetch Downloads remote application that you edit files tolocalCache // The commission of the homepage of the given Cask opens the Cask homepage info displays about the Install 一 个 消 息 一 个 消 息. 安 装 消 息 一 个 消 息. Install list with no args, Lists installed Casks; given installed Casks, Lists staged files // Outdated list the outdated installed Casks // Query the installed version of the application which is obsolete Scandisk Searches all known searches. // Searches for installs the given mouse Uninstall uninstalls the given Cask install brew CaskCopy the code
Brew recommended software list? No, not everyone likes the same thing;
For example, some people prefer NVM for Node. I use the latest package provided by BREW by default
Python, PHP and Redis are all up to date. Use the new instead of the old..
For Brew Cask, I do have a few recommendations
Brew Cask install wireshark
- Wireshark – a well-known tool for capturing packets
- Virtualbox – Open source virtual machine, I feel enough…
- Postman – Interface test tool, required
- Alfred — Necessary for fast jump
Ahem, do you think that’s the end of this article? No, there are still some poses left…
Workflow (pattern pose)
With basic package management and service management, we can play better
Required posture: Allows installation of any source program
Starting with MacOS 10.12+, this feature allows you to install apps from any source on the security mechanism (for security, believe me!). It’s blocked…
But is there a way to solve it… I must have listed it… Here’s the pose!
-> sudo SPCTL –master-disable. Tick tock tock, enter your administrator password to unlock
Position 1: Quick preview
Quick preview is a feature built into Macos that allows you to view information directly from the space bar when you select a file. Like pictures, documents!
But the built-in ones are often not powerful enough.. The community of all-powerful gay friends has made just these plugins to enrich the quick preview;
Portal: quick-look-plugins;
The previewable feature has more than doubled. Code highlighting,Markdown build previews, Excel, ZIP packages and more…
Position 2: Terminal reinforcement
The built-in terminal is frankly not very friendly… So the community creates an iterm2
Portal: Iterm2: Provides a number of built-in themes, more customizable things.
You think I’m promoting this? No, no, no, as a false front end, what is more intimate…. than with the front end of the terminal
Well, that’s — that’s what I’m all about, guys. Watch this
Portal :Hyper: Based on electron, highly customized, configuration is a JS (hot update), plugins are NPM packages, various styles
1. The x series still has some Chinese input bugs, but 2.x is so good!! Take the time to do that. Say yes!
** Well, rich customization is only external.. What about the inside? **
I’m a fan of this (ZSH), someone says Fishshell! Every man has his hobbyhorse!
Portal: oh-my-zsh;
ZSH recommends enabling several plugins (any that are not available can be installed with BREW): list of plugins and introduction
Open.zshrc and find plugins enabled, named plugins, separated by a space
# Necessary two plug-ins
brew install zsh-autosuggestions
brew install zsh-completions
Copy the code
plugins=(git autojump node npm brew osx extract redis-cli autopep8 history last-working-dir
pip python sudo web-search)
Copy the code
The first few are essential:
- Git: Provides a wealth of Git
alias
- Autojump: Still going on
cd xxx
? As long as the accessed (will index the cache path), one key direct:j(autojump) xxx
- Node: Open the Node API document
- NPM: NPM intelligent prompt
- Brew: Brew intelligent hints and completion
The back part depends on the dress. There are Python and Redis, directories, and search engines
Position 3: You like Vim?
But also found to configure a molding VIm too much work, looking for a variety of plug-ins…
Then you can try this… A dumb pack based on Neovim, which claims to be Vim’s progressive successor
Portal: SpaceVim: Community-driven ViM work environment
Position 4: Alfred
Surely there are those who say there isn’t enough Spotlight built into the system? There are also many places to index quick jumps
But Alfred’s power goes beyond indexing files… It’s extensible workflows;
Portal: workflows;
It makes Alfred a lot more efficient;
Here are a few I would recommend;
- Dash: Quick index jump to Dash manual
- CalireSearch: Index books in Calibre to jump
- Github repos: Quickly jump to some of your own Github stores (requires token configuration)
- NpmSearch: A quick search for a package on npmjs.org, directly to the browser
- StackOverflow:.so + question Filters out the list of questions and opens the browser
- Colors: color processing
Someone from the Nuggets wrote a search for Zhihu… You’re hands-on enough to write your own workflow.
Position 5: Editor? IDE?
- First up :VSCode(open source and free) : very powerful editor
- Sublime Text 3(paid, but free to use) or Atom(free as an open source)
- Last Webstorm(paid)
For mixed development, Android Studio is preferred for Android development and XCode is preferred for IOS development.
See Flutter for MacOS
Position 6: Want to watch a local video, what player recommend!
Powerful enough, well formatted, with more features than some of the paid apps in the appstore, perfect except for stability
Brew Cask install IINA
Position 7: Modify hosts?
Can command line direct rudeness;
sudo vim /etc/hosts
: And save it
Then there is no visual tool for management!! Some..
Portal: SwitchHosts
Position 8: There are a lot of shortcut keys. Do you have any convenient memorizing tools
Yes,CheatSheet: Long press the Command key to bring up a partial shortcut list for your application. Because some APP shortcuts it can’t read)
Position 9: How to remotely control assistance! Mac QQ doesn’t have this feature!
Sometimes encounter difficulties to embrace the thigh of the good big guy, how to do!!
Or sometimes see some rookie, whim want to “show the country “, how to break!
This is where the famous software comes in;
Teamviewer: Full-platform remote conferencing or assistance software, free non-commercial!!!!!! (You get the idea)
MAC to MAC can be assisted by built-in remote control
Position 10: Make the MAC more like GNU, with a richer command line
Coreutils – GNU core utilities
The GNU Core Utilities are the basic file, shell and text manipulation utilities of the GNU operating system. These are the core utilities which are expected to exist on every operating system.
brew install coreutils
Copy the code
Position 11:exa
: More modernls
Command,Rust
Write the `
A modern version of ‘ls’. the.exa.website/
brew install exa
Copy the code
Gesture 12: A free and useful system maintenance tool
Many people go to find what clean paid version, in fact, the domestic goose factory is quite conscience
-Tencent Lemon Cleaner: Monitor and remove garbage, saving money for the two apps
The software is recommended
Can be brew Cask with #, pay $, free without any sign,? Representative paid service
- motrix: full platform download tool, the bottom of the use
aria
Speed is fast - KeepingYouAwake: A great gadget to keep your notebook from sleeping (time controlled)
- VS Code – #: great Code editor
- MindNode2 – $: Mind mapping software, very simple, official plans to upgrade to 5 by the end of the year
- VMware Fusion- $/#: very useful virtual machine software
- FileZilla – # FileZilla – #
- DBeaver -$/# : very useful GUI database management with support for multiple databases
- VirtualBox – # : Open source full platform virtual machine
- Camtasia – $Camtasia – $Camtasia – $Camtasia – $Camtasia – $
- Magnet – $: Window quick typesetting tool
- Eagle – $: a very powerful tool for managing materials for designers
- Navicat Permium – $
- SourceTree: full platform GUI Git management client
- Wisdom: Tencent picture compression platform, a client!!
- Robo 3T: local MongoDB database management tool
- Wechat developer toolsBased on:
nw.js
But only for Windows and MAC!! Don’t understand - Trello – #/? : office assistance software, used are good.. I simply used to do personal list list planning (personal free), there is a client
- Dr.Unarchive: Unarchive software, similar to Windows, but I don’t know if there is post-X (available in Appstore)
- wiznote – ? : full platform notes software, more than 10 years of domestic old brand.. trustworthy
- Calibre – #: Powerful library management (full platform) that can be used to build a local library
- [Gifox](gifox.io/ – $): I like this GIF recording tool
- Dash – ? : a very comprehensive collection of manuals
- charles – ? : HTTP packet capture analysis
For PS family bucket and MS Office family bucket these depends on people download. Harmony poses are also available online (you get the idea!).
Like QQ, Youku, Tencent Video, Youdao Dictionary,QQ Music, netease Cloud Music,
Also available on the App Store (some apps can brew Cask directly),
But ah, the version here may not be as fast as what they’re pushing. There will also be some functional limitations (stores are more limited).
The official website provides some need to use administrator privileges or some system level services!!
Macos can also compile and install some software!!!!
Q: You might want tomarkdown
What about these tools?
I feel pretty good about using VSCode or Atom to write markdown,
Can do a variety of highlighting, shortcut key completion, export PDF and so on.
Some people say I like to be organized! There is no manifest class application! There are a lot of them, but they feel useless. The built-in to-do list (for the day)+ the schedule inside the email (repeat, future, full day schedule) is perfect..
conclusion
Oh, and some of you might also be wondering if Linux or Unix commands can be used directly on MacOS; The early Macs were based on BSD, so they had some Unix pedigree… Although some commands are the same, there are some parameter differences.
There are also some additional installations, such as WGET and HTOP
Both sides from command (mv, cp, the history, the file, more…). These functions are much the same (more parameter differences!!).
Software is not much, enough is good… There are some more sensitive is not recommended (the world is so big, you do not want to see! How knowledge is learned quickly! If you blindly look for tools, install a large pile of rarely used or almost never used. A waste of life and disk space