xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Upgrade bash
brew install bash
brew install bash-completion@2
brew install python3
Replace standart cat
command
brew install bat
Improved recursive search in CLI
brew install fzf
# To install useful key bindings and fuzzy completion:
$(brew --prefix)/opt/fzf/install
Improved top
brew install htop
Move files to trash
brew install trash
Power tools for kubectl
brew install kubectx
K8s prompt
brew install kube-ps1
Add to ~/.bash_profile
#!/bin/bash
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
source ~/bash_profile/env.sh
source ~/bash_profile/secrets.sh
source ~/bash_profile/alias.sh
source ~/bash_profile/completion.sh
source ~/bash_profile/cli.sh
Save additional K8s cluster config file under ~/.kube/
directory with name prefix config-
.
For example: ~/.kube/config-devDave
Clear script is located at scripts/clear_dir.sh
and launchctl plist file is jobs/im.golovan.clear-downloads-dir.plist
ln -sf ~/bash_profile/jobs/im.golovan.clear-downloads-dir.plist ~/Library/LaunchAgents/im.golovan.clear-downloads-dir.plist
launchctl load ~/Library/LaunchAgents/im.golovan.clear-downloads-dir.plist
launchctl start ~/Library/LaunchAgents/im.golovan.clear-downloads-dir
Clear script is located at scripts/clear_trash.sh
and launchctl plist file is jobs/im.golovan.clear-trash.plist
ln -sf ~/bash_profile/jobs/im.golovan.clear-trash.plist ~/Library/LaunchAgents/im.golovan.clear-trash.plist
launchctl load ~/Library/LaunchAgents/im.golovan.clear-trash.plist
launchctl start ~/Library/LaunchAgents/im.golovan.clear-trash