Last active
October 30, 2023 22:46
-
-
Save pedrodsrodrigues/19a61ddc9a6050b2f727f210be2608ae to your computer and use it in GitHub Desktop.
Prepare your Machine Environment
This file contains 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
# The following process was made for MacOS and some commands might not work in a different OS! | |
### Requirements: ### | |
- GIT | |
### Commands ### | |
# Brew and ZSH | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew install zsh neovim pre-commit postman kubernetes-cli helm tfenv openlens awscli visual-studio-code drawio fly fzf cheatsheet git-crypt gpg-suite nmap thefuck asdf pygments dive gum metasploit owasp-zap gh | |
yes | /opt/homebrew/opt/fzf/install # Fzf | |
zsh --version | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
chsh -s $(which zsh) | |
echo "$SHELL" | |
# Finder | |
defaults write com.apple.Finder AppleShowAllFiles -bool true | |
defaults write com.apple.finder ShowPathbar -bool true | |
defaults write com.apple.finder ShowStatusBar -bool true | |
### ZSH plugins ### | |
# Syntax Highlighting | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
# Autosuggestions | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
# Completions | |
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-completions | |
### File ~/.zshrc ### | |
ZSH_THEME="xiong-chiamiov-plus" | |
HIST_STAMPS="dd.mm.yyyy" | |
# ZSH plugins | |
plugins=( | |
zsh-syntax-highlighting | |
zsh-autosuggestions | |
zsh-completions | |
aliases | |
colored-man-pages | |
colorize | |
command-not-found | |
dircycle | |
history | |
per-directory-history | |
safe-paste | |
z | |
docker | |
git | |
brew | |
alias-finder | |
ansible | |
docker-compose | |
kubectl | |
nmap | |
thefuck | |
zsh-interactive-cd | |
) | |
# Add in the end of ~/.zshrc | |
################################# MINE - START ################################# | |
# Bash History | |
HISTSIZE=100000 | |
HISTFILESIZE=100000 | |
HISTCONTROL=ignoreboth | |
setopt EXTENDED_HISTORY | |
export PATH="/opt/homebrew/bin:${PATH}" | |
eval $(thefuck --alias --enable-experimental-instant-mode) | |
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
source "$HOME/.aliases" | |
################################## MINE - END ################################## | |
# Reload configs/Reopen the terminal | |
source ~/.zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment