switch to powerlevel10k and install misc utilities
This commit is contained in:
parent
4a251ace1e
commit
e934a93c65
21
Brewfile
21
Brewfile
@ -5,6 +5,10 @@ tap "homebrew/core"
|
|||||||
tap "twpayne/taps"
|
tap "twpayne/taps"
|
||||||
# Tap for real path
|
# Tap for real path
|
||||||
tap "iveney/mocha"
|
tap "iveney/mocha"
|
||||||
|
tap "atlassian/tap"
|
||||||
|
tap "datawire/blackbird" # telepresence https://www.telepresence.io/reference/install
|
||||||
|
tap "liamg/tfsec"
|
||||||
|
tap "derailed/k9s"
|
||||||
|
|
||||||
cask "java"
|
cask "java"
|
||||||
cask "iterm2"
|
cask "iterm2"
|
||||||
@ -13,7 +17,6 @@ cask "visual-studio-code"
|
|||||||
cask "pgadmin4"
|
cask "pgadmin4"
|
||||||
cask "sloth"
|
cask "sloth"
|
||||||
cask "xmind"
|
cask "xmind"
|
||||||
cask "vlc"
|
|
||||||
cask "firefox"
|
cask "firefox"
|
||||||
# quik for GoPro
|
# quik for GoPro
|
||||||
cask "quik"
|
cask "quik"
|
||||||
@ -37,6 +40,8 @@ cask "virtualbox"
|
|||||||
cask "arduino"
|
cask "arduino"
|
||||||
cask "koa11y" # desktop app for asserting websites accessibility
|
cask "koa11y" # desktop app for asserting websites accessibility
|
||||||
cask "osxfuse" # telepresence https://www.telepresence.io/reference/install
|
cask "osxfuse" # telepresence https://www.telepresence.io/reference/install
|
||||||
|
cask "qbittorrent"
|
||||||
|
cask "vlc"
|
||||||
|
|
||||||
# Mac app store
|
# Mac app store
|
||||||
mas 'Keynote', id: 409183694
|
mas 'Keynote', id: 409183694
|
||||||
@ -133,5 +138,17 @@ brew "zola" # a simple and fast static site generator
|
|||||||
brew "rustup" # Install Rust
|
brew "rustup" # Install Rust
|
||||||
brew "jq" # add jq utility for parsing json
|
brew "jq" # add jq utility for parsing json
|
||||||
brew "octant" # k8s cluster viewer
|
brew "octant" # k8s cluster viewer
|
||||||
brew "datawire/blackbird/telepresence" # telepresence https://www.telepresence.io/reference/install
|
brew "telepresence" # telepresence https://www.telepresence.io/reference/install
|
||||||
brew "ansiweather" # https://github.com/fcambus/ansiweather
|
brew "ansiweather" # https://github.com/fcambus/ansiweather
|
||||||
|
brew "bats" # test for bash scripts
|
||||||
|
brew "atlassian-plugin-sdk" # atlassian sdk https://developer.atlassian.com/server/framework/atlassian-sdk/install-the-atlassian-sdk-on-a-linux-or-mac-system/#step-2-download-and-install-the-sdk
|
||||||
|
|
||||||
|
brew "terragrunt"
|
||||||
|
brew "helm"
|
||||||
|
brew "aws-iam-authenticator"
|
||||||
|
brew "tfsec"
|
||||||
|
brew "k9s"
|
||||||
|
brew "stern"
|
||||||
|
|
||||||
|
brew "tac" # Needed for some terraform modules at work
|
||||||
|
brew "coreutils"
|
||||||
|
1207
dot_p10k_dot_zsh
Normal file
1207
dot_p10k_dot_zsh
Normal file
File diff suppressed because it is too large
Load Diff
@ -48,6 +48,7 @@ ln -snf ~/Code/dotfiles/requirements.txt ~/requirements.txt
|
|||||||
ln -snf ~/Code/dotfiles/dot_surfraw.conf ~/.surfraw.conf
|
ln -snf ~/Code/dotfiles/dot_surfraw.conf ~/.surfraw.conf
|
||||||
ln -snf ~/Code/dotfiles/private_dot_3llo/config.sh ~/.3llo_config
|
ln -snf ~/Code/dotfiles/private_dot_3llo/config.sh ~/.3llo_config
|
||||||
ln -snf ~/Code/dotfiles/dot_ansiweatherrc ~/.ansiweatherrc
|
ln -snf ~/Code/dotfiles/dot_ansiweatherrc ~/.ansiweatherrc
|
||||||
|
ln -snf ~/Code/dotfiles/dot_p10k_dot_zsh ~/.p10k.zsh
|
||||||
|
|
||||||
# Other symblinks + Install Docker Desktop for Mac
|
# Other symblinks + Install Docker Desktop for Mac
|
||||||
case "$(uname -s)" in
|
case "$(uname -s)" in
|
||||||
@ -117,10 +118,10 @@ bundle install
|
|||||||
# Install Oh My Zsh and some cool dependencies
|
# Install Oh My Zsh and some cool dependencies
|
||||||
echo "Installing Oh My Zsh + customizing themes and plugins"
|
echo "Installing Oh My Zsh + customizing themes and plugins"
|
||||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||||
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
|
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "$ZSH_CUSTOM/themes/powerlevel10k"
|
||||||
git clone https://github.com/AlexisBRENON/oh-my-zsh-reminder ~/.oh-my-zsh/custom/plugins/reminder
|
git clone https://github.com/AlexisBRENON/oh-my-zsh-reminder "$ZSH_CUSTOM/plugins/reminder"
|
||||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$ZSH_CUSTOM/plugins/zsh-syntax-highlighting"
|
||||||
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
git clone https://github.com/zsh-users/zsh-autosuggestions "$ZSH_CUSTOM/plugins/zsh-autosuggestions"
|
||||||
ln -snf ~/Code/dotfiles/dot_zshrc ~/.zshrc
|
ln -snf ~/Code/dotfiles/dot_zshrc ~/.zshrc
|
||||||
ln -snf ~/Code/dotfiles/dot_zshrc.pre-oh-my-zsh ~/.zshrc.pre-oh-my-zsh
|
ln -snf ~/Code/dotfiles/dot_zshrc.pre-oh-my-zsh ~/.zshrc.pre-oh-my-zsh
|
||||||
|
|
||||||
|
3
dot_scripts/cleanup.sh
Normal file
3
dot_scripts/cleanup.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -eo pipefail
|
||||||
|
docker system prune
|
2
dot_scripts/configure.sh
Normal file
2
dot_scripts/configure.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
p10k configure
|
29
dot_scripts/version.sh
Normal file → Executable file
29
dot_scripts/version.sh
Normal file → Executable file
@ -1,4 +1,33 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
set -eo pipefail
|
||||||
vim --version | head -1
|
vim --version | head -1
|
||||||
rustc --version
|
rustc --version
|
||||||
npm --version
|
npm --version
|
||||||
|
bats --version
|
||||||
|
octant version
|
||||||
|
kubectl version
|
||||||
|
zola --version
|
||||||
|
pip --version
|
||||||
|
pip3 --version
|
||||||
|
java -version
|
||||||
|
javac -version
|
||||||
|
ansible --version
|
||||||
|
terraform --version
|
||||||
|
hugo version
|
||||||
|
python --version
|
||||||
|
python3 --version
|
||||||
|
docker --version
|
||||||
|
openssl version
|
||||||
|
git --version
|
||||||
|
atlas-version | grep Version | head -n 1
|
||||||
|
|
||||||
|
export SDKMAN_DIR="$HOME/.sdkman"
|
||||||
|
[[ -s "$SDKMAN_DIR/bin/sdkman-init.sh" ]] && source "$SDKMAN_DIR/bin/sdkman-init.sh"
|
||||||
|
sdk --version
|
||||||
|
tac --version | head -n 1
|
||||||
|
k9s version
|
||||||
|
tfsec --version
|
||||||
|
aws-iam-authenticator version
|
||||||
|
stern --version
|
||||||
|
helm version
|
||||||
|
terragrunt --version
|
||||||
|
@ -109,6 +109,9 @@ alias unix='curl -L http://git.io/unix'
|
|||||||
alias coffee="curl -L http://git.io/coffee"
|
alias coffee="curl -L http://git.io/coffee"
|
||||||
alias hotcoffee="curl -sL git.io/hotcoffee | sh"
|
alias hotcoffee="curl -sL git.io/hotcoffee | sh"
|
||||||
alias usernames="python3 $HOME/Code/sherlock/sherlock.py --rank --print-found"
|
alias usernames="python3 $HOME/Code/sherlock/sherlock.py --rank --print-found"
|
||||||
|
alias checken="aspell check -d en"
|
||||||
|
alias checkfr="aspell check -d fr"
|
||||||
|
alias gw='./gradlew'
|
||||||
|
|
||||||
# Show/hide hidden files in Finder
|
# Show/hide hidden files in Finder
|
||||||
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
|
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
|
||||||
|
@ -224,3 +224,5 @@ function gcrb {
|
|||||||
branch=$1
|
branch=$1
|
||||||
git checkout -b $branch origin/$branch
|
git checkout -b $branch origin/$branch
|
||||||
}
|
}
|
||||||
|
function terraform-compliance { docker run --rm -v "$(pwd):/target" -i -t eerkunt/terraform-compliance "$@"; }
|
||||||
|
function checkov { docker run -i --rm -v "$(pwd):/tf" bridgecrew/checkov -d /tf "$@" ; }
|
||||||
|
45
dot_zshrc
45
dot_zshrc
@ -1,15 +1,53 @@
|
|||||||
|
|
||||||
# If you come from bash you might have to change your $PATH.
|
# If you come from bash you might have to change your $PATH.
|
||||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
# Path to your oh-my-zsh installation.
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
|
|
||||||
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
|
# confirmations, etc.) must go above this block, everything else may go below.
|
||||||
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Set name of the theme to load --- if set to "random", it will
|
# Set name of the theme to load --- if set to "random", it will
|
||||||
# load a random theme each time oh-my-zsh is loaded, in which case,
|
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
||||||
ZSH_THEME="powerlevel9k/powerlevel9k"
|
#ZSH_THEME="powerlevel9k/powerlevel9k"
|
||||||
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||||
ZSH_COLORIZE_STYLE="monokai"
|
ZSH_COLORIZE_STYLE="monokai"
|
||||||
|
|
||||||
|
#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs newline)
|
||||||
|
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_from_right"
|
||||||
|
POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
|
||||||
|
POWERLEVEL9K_SHORTEN_DELIMITER=""
|
||||||
|
#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs newline)
|
||||||
|
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs nvm)
|
||||||
|
|
||||||
|
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status background_jobs command_execution_time time context)
|
||||||
|
POWERLEVEL9K_SHOW_CHANGESET=true
|
||||||
|
POWERLEVEL9K_CHANGESET_HASH_LENGTH=8
|
||||||
|
|
||||||
|
|
||||||
|
POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR=''
|
||||||
|
POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR=''
|
||||||
|
|
||||||
|
POWERLEVEL9K_TIME_FOREGROUND='245'
|
||||||
|
POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND='245'
|
||||||
|
POWERLEVEL9K_STATUS_OK_FOREGROUND='green'
|
||||||
|
POWERLEVEL9k_STATUS_ERROR_FOREGROUND='red'
|
||||||
|
POWERLEVEL9k_STATUS_ERROR_FOREGROUND='red'
|
||||||
|
|
||||||
|
POWERLEVEL9K_TIME_BACKGROUND='clear'
|
||||||
|
POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND='clear'
|
||||||
|
POWERLEVEL9K_STATUS_OK_BACKGROUND='clear'
|
||||||
|
POWERLEVEL9K_STATUS_ERROR_BACKGROUND='clear'
|
||||||
|
POWERLEVEL9K_STATUS_ERROR_BACKGROUND='clear'
|
||||||
|
POWERLEVEL9K_CONTEXT_DEFAULT_BACKGROUND='clear'
|
||||||
|
|
||||||
# Set list of themes to pick from when loading at random
|
# Set list of themes to pick from when loading at random
|
||||||
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
||||||
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
|
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
|
||||||
@ -62,8 +100,7 @@ ZSH_COLORIZE_STYLE="monokai"
|
|||||||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
plugins=(reminder common-aliases extract git sdk zsh-syntax-highlighting zsh-autosuggestions ansible brew colorize docker pipenv pip python terraform aws)
|
plugins=(reminder common-aliases extract git sdk zsh-syntax-highlighting zsh-autosuggestions ansible brew colorize docker pipenv pip python terraform aws helm kubectl)
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
@ -126,3 +163,5 @@ export GOPATH="$HOME/go"
|
|||||||
export RUSTPATH="$HOME/.cargo/bin"
|
export RUSTPATH="$HOME/.cargo/bin"
|
||||||
export PATH="/usr/local/opt/grep/libexec/gnubin:$GOPATH/bin:$RUSTPATH:$PATH"
|
export PATH="/usr/local/opt/grep/libexec/gnubin:$GOPATH/bin:$RUSTPATH:$PATH"
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
Loading…
Reference in New Issue
Block a user