Skip to content

Instantly share code, notes, and snippets.

@rasouza
Last active May 13, 2022 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rasouza/529ca4cda3e6b8ddf3432d9e164acb0b to your computer and use it in GitHub Desktop.
Save rasouza/529ca4cda3e6b8ddf3432d9e164acb0b to your computer and use it in GitHub Desktop.
# Load the oh-my-zsh's library
antigen use oh-my-zsh
antigen bundles <<EOBUNDLES
# Bundles from the default repo (robbyrussell's oh-my-zsh)
aliases
asdf
autojump
command-not-found
direnv
docker
fd
fzf
git
gpg-agent
httpie
macos
# rust
sudo
terraform
volta
yarn
# Syntax highlighting bundle.
zsh-users/zsh-syntax-highlighting
# Fish-like auto suggestions
zsh-users/zsh-autosuggestions
# Extra zsh completions
zsh-users/zsh-completions
EOBUNDLES
# Load the theme
# antigen theme agnoster
# Tell antigen that you're done
antigen apply
source /usr/local/share/antigen/antigen.zsh
antigen init ~/.antigenrc
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to automatically update without prompting.
DISABLE_UPDATE_PROMPT="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS=true
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='mvim'
fi
# Compilation flags
export ARCHFLAGS="-arch x86_64"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
alias zshconfig="code ~/.zshrc"
alias ohmyzsh="code ~/.oh-my-zsh"
# LSD
alias ls='lsd'
alias l='ls -l'
alias la='ls -a'
alias lla='ls -la'
alias lt='ls --tree'
# Bat
alias cat='bat'
# HEAD^ issue
unsetopt extendedglob
# Google Cloud SDK
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/rasouza/Downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/rasouza/Downloads/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/rasouza/Downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/rasouza/Downloads/google-cloud-sdk/completion.zsh.inc'; fi
# Oh-my-Posh
eval "$(oh-my-posh init zsh --config ~/.oh-my-posh/slimfat.omp.json)"
# Volta Node
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
# kubectl
source <(kubectl completion zsh)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment