-
Open the Terminal.app run this command
-
xcode-select --install
-
If you want to remove this tools, then run
sudo rm -rf /Library/Developer/CommandLineTools
-
Open Finder, search the Terminal.app in Applications (not open)
-
Right click on Terminal > Get Info > Check Open Using Rosseta
-
Go to this website: https://brew.sh then copy the link
-
Paste in Terminal (the link is like the show below, but maybe it will change)
-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
brew install iterm2
-
brew install wget
wget https://raw.githubusercontent.com/AntonellaCoder/dotfiles/main/.zshrc
-
brew install git
-
brew install vcprompt
-
brew install spectacle
-
brew install firefox
-
brew install visual-studio-code
-
brew install zsh-autosuggestions
-
brew install zsh-syntax-highlighting
-
brew install autojump
-
brew install fzf
-
for keybindings follow the instruction in your terminal.
-
/usr/local/opt/fzf/install
Yes to all -
Use: type fzf in iterm, CTR + r (bash_history) CTR + t (search_files), to close, use ESC or CTR + c
-
While searching, you can select multiple files using TAB
-
cd **
to show the options where to cd -
ssh **
-
The command below was found at https://github.com/nvm-sh/nvm
-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
-
nvm install stable
-
nvm --version
-
npm --version
-
nvm list
-
node --version
- no not do this, only example
nvm install 14
-
mkdir ~/dev
-
npm install -g lite-server eslint
-
wget https://www.marksimonson.com/assets/content/fonts/AnonymousPro-1_002.zip
-
unzip from your finder and install it
-
Go to ~/dev and got this with the first line, then run the second line to install.
-
wget https://raw.githubusercontent.com/AntonellaCoder/dotfiles/main/code.extensions
-
while read line; do code --install-extension "$line";done < code.extensions
- In vscode press Cmd + Shift + P --> Open Settings (JSON) and paste it.
- In vscode press Cmd + Shift + P --> Open Keyboard Shortcuts (JSON) and paste it.
ssh-keygen -t rsa -b 4096
-
In your mac, copy your public key
-
cat ~/.ssh/id_rsa.pub | pbcopy
-
Login in your Remote Machine
-
Set correct permission to ssh
-
If Synology -->
sudo chmod 700 your_user_main_directory
-
ssh your_user@your_ip_remote -p your_port
-
Paste your public key in the next file
-
vim ~/.ssh/authorized_keys
- Use github junegunn/vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
-
mkdir -p ~/.vim/undodir
-
Go to your home directory
cd ~
and get my .vimrc -
wget https://raw.githubusercontent.com/AntonellaCoder/dotfiles/main/.vimrc-mac
-
rename it
mv .vimrc-mac .vimrc
-
open .vimrc (no matter if errors, continue)
vim .vimrc
-
inside .vimrc press ESC and then write
:source %
(if error, continues) -
inside .vimrc press ESC and then write
:PlugInstall
-
when finished quit from both windows
:q
:q
then relaunch iterm -
check the effect
vim .vimrc
-
To use python3 as default do this:
-
Create
.zprofile
-
Add this to the file
alias python='python3'
-
Relaunch iTerm
-
Now you are ready to rock.
-
brew install pipenv
-
check with
pipenv --version
-
also check the default
pip --version
orpip3 --version
-
export PIPENV_VENV_IN_PROJECT="enabled"
-
To remove the option above
unset PIPENV_VENV_IN_PROJECT
-
pipenv install django
-
To activate the virtual environment
pipenv shell
-
To see what's inside the virtual environment
pip freeze
-
If chargion previous project, install dependencies
pipenv install --dev
- Opcional --> With specific versions
pipenv install django==3.0.4 --python python3.8