Last active
August 22, 2022 19:32
-
-
Save eloyvega/ad7a412f085cbf496b406a053e2bdf38 to your computer and use it in GitHub Desktop.
My configs
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
ZSH_THEME="powerlevel10k/powerlevel10k" | |
plugins=(git zsh-autosuggestions zsh-syntax-highlighting autojump) | |
source $ZSH/oh-my-zsh.sh | |
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh | |
# ALIASES | |
alias py=python | |
alias tf=terraform | |
alias cleanaws="cat /dev/null > ~/.aws/credentials && cat /dev/null > ~/.aws/config" | |
alias c="code ." | |
alias vim=nvim | |
alias finder="open -a Finder ." | |
alias k="kubectl" | |
# NVM | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
# AWS credentials functions | |
function aexport { | |
export AWS_ACCESS_KEY_ID="$(aws configure get aws_access_key_id)" | |
export AWS_SECRET_ACCESS_KEY="$(aws configure get aws_secret_access_key)" | |
export AWS_SECURITY_TOKEN="$(aws configure get aws_security_token)" | |
export AWS_SESSION_TOKEN="$(aws configure get aws_session_token)" | |
export AWS_DEFAULT_REGION="$(aws configure get region)" | |
} | |
function aunset { | |
unset AWS_ACCESS_KEY_ID | |
unset AWS_SECRET_ACCESS_KEY | |
unset AWS_SECURITY_TOKEN | |
unset AWS_SESSION_TOKEN | |
unset AWS_DEFAULT_REGION | |
unset AWS_PROFILE | |
} | |
# Pyenv | |
eval "$(pyenv virtualenv-init -)" | |
eval "$(pyenv init -)" | |
# Direnv | |
eval "$(direnv hook zsh)" | |
# In .p10k.zsh | |
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet |
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
tap "aws/tap" | |
tap "derailed/k9s" | |
tap "hashicorp/tap" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/core" | |
tap "wagoodman/bashful" | |
brew "autojump" | |
brew "colima" | |
brew "direnv" | |
brew "docker" | |
brew "docker-compose" | |
brew "docker-credential-helper" | |
brew "fzf" | |
brew "gh" | |
brew "git-lfs" | |
brew "grep" | |
brew "helm" | |
brew "jq" | |
brew "kubernetes-cli" | |
brew "kubectx" | |
brew "neovim" | |
brew "nmap" | |
brew "pre-commit" | |
brew "pyenv" | |
brew "tfenv" | |
brew "tree" | |
brew "wget" | |
brew "yq" | |
brew "zlib" | |
brew "aws/tap/aws-sam-cli" | |
brew "derailed/k9s/k9s" | |
brew "hashicorp/tap/vault" | |
brew "wagoodman/bashful/bashful" | |
cask "aws-vault" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment