macOS Setup
Some basics about setting up a development environment on macOS.
Xcode
In the terminal, run
|
|
Homebrew
|
|
Oh My Zsh
Install Zsh first:
|
|
Then install Oh My Zsh:
|
|
Plugins
Edit ~/.zshrc
:
|
|
sudo
Press ESC
twice to add sudo
to the beginning of the command.
extract
Use x abc.zip
to extract abc.zip
. It supports almost all compressed formats.
autojump
|
|
Follow the instructions to add the following line to ~/.zshrc
:
|
|
Use j
to jump to the matching directory.
|
|
zsh-autosuggestions
auto-suggestion for zsh. It suggests commands based on your command history.
|
|
zsh-syntax-highlighting
Syntax highlighting for zsh. It should be the last plugin in the plugins
list.
|
|
Theme
I prefer the powerlevel10k
theme. One can find the installation instructions here.
-
clone the repository
1
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
-
Set
ZSH_THEME="powerlevel10k/powerlevel10k"
in~/.zshrc
. -
Run
p10k configure
to configure the theme. (It will be automatically run when you open a new terminal window. I prefer not to install the recommended fonts.)
Software
tldr
tldr
is a community effort to simplify the beloved man
pages with practical examples.
|
|
To use it, run
|
|
tree
tree
is a recursive directory listing command that produces a depth indented listing of files.
|
|
Conda
See conda-basics for more details.
SSH
See ssh-basics for more details.
Git
See git-basics for more details.
Useful Commands
Remove all .DS_Store
files recursively
Delete all .DS_Store
files recursively and print the path of each deleted file:
|
|