Created
June 26, 2025 10:37
-
-
Save nidr0x/45e2c3f915737142daef3201288a8727 to your computer and use it in GitHub Desktop.
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
# Oh My Zsh configuration | |
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
ZSH_CACHE_DIR="$HOME/.cache/ohmyzsh" | |
mkdir -p "$ZSH_CACHE_DIR" | |
# ZSH_THEME="robbyrussell" # Unneeded since we're using Starship | |
# Uncomment the following lines for additional options | |
# CASE_SENSITIVE="true" | |
# HYPHEN_INSENSITIVE="true" | |
# DISABLE_AUTO_UPDATE="true" | |
export UPDATE_ZSH_DAYS=6 | |
# DISABLE_LS_COLORS="true" | |
# DISABLE_AUTO_TITLE="true" | |
ENABLE_CORRECTION="true" | |
COMPLETION_WAITING_DOTS="true" | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# HIST_STAMPS="mm/dd/yyyy" | |
# Custom plugins and settings | |
plugins=( | |
aliases | |
aws | |
colorize | |
colored-man-pages | |
common-aliases | |
copyfile | |
copypath | |
cp | |
fzf | |
git | |
git-extras | |
gitfast | |
httpie | |
history-substring-search | |
kubectl | |
macos | |
sudo | |
vscode | |
z | |
zsh-autosuggestions | |
zsh-syntax-highlighting | |
) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
compdef kubecolor=kubectl | |
# Preferred editor for local and remote sessions | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='vim' | |
else | |
export EDITOR='nano' | |
fi | |
# Pyenv configuration | |
export PYENV_ROOT="$HOME/.pyenv" | |
if [[ -d $PYENV_ROOT/bin ]]; then | |
export PATH="$PYENV_ROOT/bin:$PATH" | |
eval "$(pyenv init -)" | |
fi | |
# Path configuration | |
export PATH=/opt/homebrew/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:~/.local/bin:~/.krew/bin | |
# To automatically start tmux, uncomment the following lines. | |
# A common alternative is to use an alias like: alias tma="tmux attach || tmux new" | |
# if [ -z "$TMUX" ]; then | |
# tmux | |
# fi | |
# Source fzf configuration if exists | |
[ -f $HOME/.fzf.zsh ] && source $HOME/.fzf.zsh | |
# Aliases | |
setopt HIST_IGNORE_SPACE | |
alias k='kubecolor' | |
alias vim="nvim" | |
alias tfswitch="tfswitch -b /opt/homebrew/bin/terraform" | |
alias tf="terraform" | |
alias ls="eza --icons --group-directories-first" | |
alias ll="eza --icons --group-directories-first -lah" | |
eval "$(oh-my-posh init zsh --config ~/.config/oh-my-posh.yaml)" | |
eval "$(direnv hook zsh)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment