Great tutorial for setting up your mac
Installing Homebrew
Homebrew installs packages to their own directory and then symlinks their files into /usr/local
(on macOS Intel).
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install wget
# Use the option cask fo installing gui apps
brew install --cask firefox
Vim came out of the box
# The vim configuration is located in the home directory and called ['~/.vimrc']
nano ~/.vimrc
# the folder that has all the vim plugin etc is located
cd ~/.vim
Install zsh [zshell]
brew install zsh
Install Oh my zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Installing Neovim
brew install neovim
# or you can use curl
curl -LO https://github.com/neovim/neovim/releases/download/night
# the location [directory] of that file in ~/.local/share/nvim
cd ~/.local/share/nvim
# This will create a plugin folder for neovim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# The neovim plugin should be place in this directory. if that is not available
# you shloud cteate it.
~/.config/nvim/plugged
NerdTree [file explorer]
# You can use one of the plugin manager to add this
# insde the .vimrc file
Plugin 'scrooloose/nerdtree'
# insde the .vimrc file
# use map key C-n [C=> Control]to invoke :NERDTree commands
:map<C-n>:NERDTree
# To move between windows use <C-w>[control +w]
# To show the menu. Within the NERDTree window press m key
m
# Adding folder give it a name and ended with /
folder/
# If you want to create a file used the name with an extension
file.js
# To open in another tap use the t key in the NERDTree window
t
# To switch between tabs use g+t key
Realy nice looking nvim setup
Displaying a password of an wifi by its SSID:
# The pb copy in mac copy the output of any commands to your cliboard.
security find-generic-password -wa "SSID_YOU_SERACHING_FOR" | pb copy
Copy any text without formatting
COM+C ⇒ COPY
COM+ALT+SHIFT+V ⇒ PASTE
Make your mac awake
# This command will make your terminal awake until you hit "CONTROL + C" to exit
coffeinate