iTerm2 config or new project — new battle

Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install git nvm

iTerm2

brew install --cask iterm2
iTerm2 > Preferences > Profiles > Colors
git clone https://github.com/powerline/fonts.git ~/Downloads/fonts/

sh ~/Downloads/fonts/install.sh

rm -Rf ~/Downloads/fonts
iTerm2 > Preferences > Profiles > Text > Change Font
iTerm2 → Preferences → Profiles → Text
→ Cursor : ✓ Vertical Bar
→ Blinking cursor : ✓ ON
iTerm → Preferences → Profiles → Keys → Load Preset… → Natural Text Editing
iTerm → Preferences → Profiles → Window
iTerm → General → Closing

Zsh

brew install zsh zsh-syntax-highlighting zsh-autosuggestions
zsh --version

Oh-My-Zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
omz update
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
open ~/.zshrc
ZSH_THEME="powerlevel9k/powerlevel9k"
plugins=(
git
yarn
web-search
jsontools
macports
node
macos
sudo
vscode
docker
dotenv
npm
nvm
)
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zshsource /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
### VISUAL CUSTOMIZATION ### 

# Elements options of left prompt (remove the @username context)
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir rbenv vcs)
# Elements options of right prompt
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time)



# Add a second prompt line for the command
POWERLEVEL9K_PROMPT_ON_NEWLINE=true

# Add a space in the first prompt
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="%f"

# Visual customisation of the second prompt line
local user_symbol="$"
if [[ $(print -P "%#") =~ "#" ]]; then
user_symbol = "#"
fi
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%{%B%F{black}%K{yellow}%} $user_symbol%{%b%f%k%F{yellow}%} %{%f%}"


# Change the git status to red when something isn't committed and pushed
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='red'

# Add a new line after the global prompt
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true


# Colorise the top Tabs of Iterm2 with the same color as background
# Just change the 18/26/33 wich are the rgb values
echo -e "\033]6;1;bg;red;brightness;18\a"
echo -e "\033]6;1;bg;green;brightness;26\a"
echo -e "\033]6;1;bg;blue;brightness;33\a"
source ~/.zshrc
Insecure completion-dependent directories detected
chmod 755 /usr/local/share/zsh
chmod 755 /usr/local/share/zsh/site-functions

Git configuration

git config --global user.name "FIRST_NAME LAST_NAME"
git config --global user.email "MY_NAME@example.com"
git config --global core.editor "nano"
git config --global pager.branch false

VS Code

{
"files.autoSave": "afterDelay",
"terminal.integrated.shell.osx": "zsh",
"terminal.integrated.fontFamily": "Source Code Pro for Powerline",
"terminal.integrated.fontSize": 14
}

WebStorm

Preferences -> Tools -> Terminal

I can help with IT infrastructure (AWS), apps (Node.js + React) and teams.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Cloning of Udemy Website

Handy Docker Commands and Links to Start With (Tomcat Example)

Make Your Lightning Components Publicly Accessible.

File systems — An in-depth intro

Flickr Search a Coding Challenge — Using VueJs and TailwindCSS

VMAX3 Architecture — Theory

Send Email With Django Using Gmail SMTP

Interview Prep Day — 5

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Evheniy Bystrov

Evheniy Bystrov

I can help with IT infrastructure (AWS), apps (Node.js + React) and teams.

More from Medium

Create and publish a NuGet package using visual studio mac 2019

Edit Host/User name in new macOS

MSAL: Getting the Microsoft Samples Working — Why DevOps is just so good

Customizing your development terminal