Last active
September 27, 2022 23:54
-
-
Save todd-dsm/17f4f6af9a3fd838d47db3527724b732 to your computer and use it in GitHub Desktop.
example oh my zsh completion configurations
This file contains hidden or 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
# file/path: ~/.oh-my-zsh/custom/environment.zsh | |
# -------------------------------------|------------------------------------- # | |
# SHELL # | |
# --------------------------------------------------------------------------- # | |
alias hist='history | cut -c 8-' | |
# --------------------------------------------------------------------------- # | |
# Rust # | |
# --------------------------------------------------------------------------- # | |
#source "$HOME/.cargo/env" | |
# --------------------------------------------------------------------------- # | |
# Python # | |
# --------------------------------------------------------------------------- # | |
#export PIP_CONFIG_FILE="$HOME/.config/python/pip.conf" | |
# Setup autoenv to your tastes | |
#export AUTOENV_AUTH_FILE="$HOME/.config/python/autoenv_authorized" | |
#export AUTOENV_ENV_FILENAME='.env' | |
#export AUTOENV_LOWER_FIRST='' | |
#source /usr/local/bin/activate.sh | |
# --------------------------------------------------------------------------- # | |
# Ruby # | |
# --------------------------------------------------------------------------- # | |
#source /usr/local/opt/chruby/share/chruby/chruby.sh | |
#source /usr/local/opt/chruby/share/chruby/auto.sh | |
# --------------------------------------------------------------------------- # | |
# Go # | |
# --------------------------------------------------------------------------- # | |
export GOPATH="$HOME/go" | |
alias mygo="cd $GOPATH" | |
# --------------------------------------------------------------------------- # | |
# npm # | |
# --------------------------------------------------------------------------- # | |
# --------------------------------------------------------------------------- # | |
# Vim # | |
# --------------------------------------------------------------------------- # | |
export EDITOR="/opt/homebrew/bin/vim" | |
alias -g vi="$EDITOR" | |
# --------------------------------------------------------------------------- # | |
# Amazon # | |
# --------------------------------------------------------------------------- # | |
export AWS_PROFILE='personal' | |
export AWS_CONFIG_FILE="$HOME/.aws/config" | |
# --------------------------------------------------------------------------- # | |
# Remote Access # | |
# --------------------------------------------------------------------------- # | |
# Terraform Cloud | |
# Homebrew / Github | |
#export HOMEBREW_GITHUB_API_TOKEN='' | |
# --------------------------------------------------------------------------- # | |
# Terraform # | |
# --------------------------------------------------------------------------- # | |
alias tf="$(whence -p terraform)" | |
complete -o nospace -C /usr/local/bin/terraform tf | |
export TF_VAR_AWS_PROFILE="$AWS_PROFILE" | |
export TF_LOG='ERROR' | |
export TF_LOG_PATH='/tmp/terraform.log' | |
# --------------------------------------------------------------------------- # | |
# Packer # | |
# --------------------------------------------------------------------------- # | |
#export PACKER_HOME="$HOME/vms/packer" | |
#export PACKER_CONFIG="$PACKER_HOME" | |
#export PACKER_CACHE_DIR="$PACKER_HOME/iso-cache" | |
#export PACKER_BUILD_DIR="$PACKER_HOME/builds" | |
#export PACKER_LOG='yes' | |
#export PACKER_LOG_PATH='/tmp/packer.log' | |
export PACKER_NO_COLOR='yes' | |
# --------------------------------------------------------------------------- # | |
# Ansible # | |
# --------------------------------------------------------------------------- # | |
export ANSIBLE_CONFIG="$HOME/.ansible" | |
# --------------------------------------------------------------------------- # | |
# KUBERNETES # | |
# --------------------------------------------------------------------------- # | |
export MINIKUBE_IN_STYLE=false | |
source "$HOME/.ktx" | |
source "$HOME/.ktx-completion.sh" | |
# --------------------------------------------------------------------------- # | |
# Docker # | |
# --------------------------------------------------------------------------- # | |
# command-completions for docker, et al. | |
#eval "$(docker-machine env default)" | |
# --------------------------------------------------------------------------- # | |
# Google Cloud Platform # | |
# --------------------------------------------------------------------------- # | |
source "/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc" | |
source "/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment