- Run:
mkdir ~/Github/ mkdir ~/Scripts mkdir ~/Workspace echo 'alias python="python3" alias g=git export AWS_PROFILE=myprofile' >> ~/.env
- Run:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Run:
brew cask install iterm2
- Run:
brew cask install visual-studio-code
Moving and resizing windows in macOS using keyboard shortcuts.
- Run:
brew cask install rectangle
- Open Rectangle and follow its instruction.
Having in mind that official project has been abandoned, please consider using its fork:
- Download last release from ian4hu-clipy-fork
- Unzip and install.
- Add to snippets (
⌘ + ⇧ + V
andEdit preferences
):¯\_(ツ)_/¯ (ʘ‿ʘ)
Alternatively use: https://maccy.app/
-
Run:
brew cask install keepassxc
-
Open KeePassXC and load your database.
-
Run:
curl -s "https://get.sdkman.io" | bash source ~/.sdkman/bin/sdkman-init.sh echo 'source "$HOME/.sdkman/bin/sdkman-init.sh"' >> ~/.zshrc sdk version sdk install java 15.0.1-amzn java -version
-
Add additional aliases:
echo ' jdk15 () { sdk use java 15.0.1-amzn java -version } jdk15 ' >> ~/.env
-
Run:
brew cask install jetbrains-toolbox
-
Open
JetBrains ToolBox
and installIntellij
.
- Run:
sdk install gradle 6.0 sdk install maven 3.6.3 gradle help maven -version
-
Run:
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" unzip awscli-bundle.zip sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
-
Create config files:
echo '
[myprofile]
aws_access_key_id = XXX
aws_secret_access_key = XXX' > ~/.aws/credentials
echo '
[myprofile]
output = json
region = eu-west-1' > ~/.aws/config
- Run:
brew install warrensbox/tap/tfswitch
- Run
tfswitch
and choose preferred version.
- Run:
brew cash install franz
- Open Franz and log in.
- Run:
brew cask install spotify
- Run
chsh -s $(which zsh)
. - Restart terminal.
-
Install
oh-my-zsh
by running:sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
-
Install
powerlevel 9k
by running:brew tap sambadevi/powerlevel9k brew install powerlevel9k
-
Enable glyphs in iTerm: Preferences -> search for
Use build-in Powerlink glyphs
-> enable it. -
Add to
~/.zshrc
:# Path to your oh-my-zsh installation. export ZSH="~/.oh-my-zsh" #Theme configuration ZSH_THEME="powerlevel9k/powerlevel9k" POWERLEVEL9K_PROMPT_ADD_NEWLINE=true POWERLEVEL9K_DISABLE_RPROMPT=true POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(time dir vcs) POWERLEVEL9K_DIR_HOME_BACKGROUND='deepskyblue1' POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND='steelblue3' POWERLEVEL9K_DIR_DEFAULT_BACKGROUND='gold1' source /usr/local/opt/powerlevel9k/powerlevel9k.zsh-theme
- Run:
echo ' export CLICOLOR=1 export LSCOLORS=GxFxCxDxBxegedabagaced' >> ~/.zshrc
-
Run:
brew install fzf $(brew --prefix)/opt/fzf/install
-
Open your
.zshrc
file and add tofzf
to plugins.
-
Add configuration to your
.zshrc
by running commandecho ' # History settings setopt inc_append_history setopt share_history HISTFILE="$HOME/.zsh_history" HISTSIZE=10000000 SAVEHIST=10000000' >> ~/.zshrc
- Open iTerm's Preferences -> Profile -> Session and enable "Status bar enabled"
- Click on "Configure Status Bar" and add your preferred items.
- Add new
Interpoled-String
component to the bar with value\(user.awsProfile)
- Go to Appearance and set "Status bar location" to bottom.
- Run:
curl -L https://iterm2.com/shell_integration/zsh \ -o ~/.iterm2_shell_integration.zsh
- Run:
echo ' source ~/.iterm2_shell_integration.zsh iterm2_print_user_vars() { iterm2_set_user_var awsProfile $AWS_PROFILE }' >> ~/.zshrc
-
Create an additional profile configuration:
echo "[user] email = [email protected] name = Grzegorz Kozub" > ~/Github/.gitconfig
-
Create main profile configuration:
echo '[core] autocrlf = input [user] email = [email protected] name = Grzegorz Kozub [includeIf "gitdir:~/Github/"] path = ~/Github/.gitconfig' >> ~/.gitconfig
echo '
# remove all local branches
alias git-cleanup="git fetch -p && git branch -vv | grep \x27origin/.*: gone]\x27 | awk \x27{print \$1}\x27 | xargs git branch -D"
' >> ~/.env
- Run:
echo '
# mkdir + cd
mkcdir ()
{
mkdir -p -- "$1" &&
cd -P -- "$1"
};' >> ~/.env
-
Add configuration to your
.zshrc
by running commandecho ' # Enable autosuggestions CASE_SENSITIVE="false" setopt MENU_COMPLETE setopt no_list_ambiguous autoload -Uz compinit compinit zstyle ":completion:*" menu yes select'
-
Add configuration to your
.zshrc
by running commandecho ' # Enable LS colors export CLICOLOR=1 ' >> ~/.zshrc