Last active
August 12, 2023 01:07
-
-
Save hochun836/a26ce3afc628e1dd36536c00a24a6eda to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# base | |
# common | |
echo $0 // show the using shell | |
chsh -s /bin/bash // bash: bourne again shell | |
chsh -s /bin/zsh // zsh: z shell | |
open . // open a folder with current path | |
# Homebrew | |
brew help // command not found | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/hochun836/.zprofile | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
brew help | |
=> ref: https://brew.sh/index_zh-tw | |
# oh-my-zsh | |
- stpe1. install oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
echo $ZSH | |
echo $ZSH_CUSTOM | |
- stpe2. install plugins of oh-my-zsh | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-completions | |
vi ~/.zshrc // plugins=(git zsh-autosuggestions zsh-syntax-highlighting zsh-completions) | |
- step3. install themes of oh-my-zsh | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | |
- step4. source | |
source ~/.zshrc | |
# navi | |
brew install navi | |
navi // goto interactive | |
# [note] global hotkey | |
cmd + h // hide current window | |
cmd + option + h // hide all windows except of current window | |
cmd + option + = // zoom in | |
cmd + option + - // zoom out | |
# [note] finder hotkey | |
cmd + shift + . // show/hide the hidden folders and files | |
cmd + shift + g // go to folder | |
cmd + w // close current finder | |
cmd + option + w // close all finders | |
cmd + i // get info of the selected items | |
cmd + o // open the selected items | |
cmd + d // duplicate the selected items | |
cmd + 1 // view as icon | |
cmd + 2 // view as list | |
cmd + 3 // view as column | |
cmd + 4 // view as gallery | |
# [note] macos version | |
Mac OS X 10.0 Cheetah | |
Mac OS X 10.1 Puma | |
Mac OS X 10.2 Jaguar | |
Mac OS X 10.3 Panther | |
Mac OS X 10.4 Tiger | |
Mac OS X 10.5 Leopard | |
Mac OS X 10.6 Snow Leopard | |
Mac OS X 10.7 Lion | |
OS X 10.8 Mountain Lion | |
OS X 10.9 Mavericks | |
OS X 10.10 Yosemite | |
OS X 10.11 El Capitan | |
macOS 10.12 Sierra | |
macOS 10.13 High Sierra | |
macOS 10.14 Mojave | |
macOS 10.15 Catalina | |
macOS 11 Big Sur | |
macOS 12 Monterey | |
macOS 13 Ventura | |
macOS 14 Sonoma | |
=> ref: https://zh.wikipedia.org/zh-tw/MacOS | |
# [note] other | |
key 'option' can show more option | |
# [note] learn | |
=> ref: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment