Skip to content

Instantly share code, notes, and snippets.

@iTrauco
Created September 16, 2025 12:03
Show Gist options
  • Select an option

  • Save iTrauco/46eeb8cd81c0d357a3f241a8e2945d49 to your computer and use it in GitHub Desktop.

Select an option

Save iTrauco/46eeb8cd81c0d357a3f241a8e2945d49 to your computer and use it in GitHub Desktop.
#!/bin/zsh
#################################################################
# πŸš€ CLEAN ZSHRC CONFIGURATION
# Simple Oh My Zsh setup that auto-loads .zsh files from custom/
# Author: @trauco
# Last Updated: 2025-07-25
#################################################################
#################################################################
# 🏠 BASIC PATH CONFIGURATION
#################################################################
export PATH="$HOME/bin:$HOME/.local/bin:$HOME/.scripts:/usr/local/bin:$PATH"
#################################################################
# 🎨 OH MY ZSH CONFIGURATION
#################################################################
# Path to Oh My Zsh installation
export ZSH="$HOME/.oh-my-zsh"
# Theme configuration
ZSH_THEME="robbyrussell"
# Popular alternatives: "agnoster", "powerlevel10k/powerlevel10k", "spaceship", "bullet-train"
# Update behavior
zstyle ':omz:update' mode auto
zstyle ':omz:update' frequency 13
# Configuration options
CASE_SENSITIVE="false"
HYPHEN_INSENSITIVE="true"
DISABLE_AUTO_TITLE="false"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
# History settings
HIST_STAMPS="yyyy-mm-dd"
# Plugins (mix of built-in and custom)
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
colored-man-pages
command-not-found
)
# Load Oh My Zsh (automatically sources all .zsh files in $ZSH/custom/)
source $ZSH/oh-my-zsh.sh
#################################################################
# πŸ› οΈ TOOL INTEGRATIONS
#################################################################
# Google Cloud SDK
if [[ -f '/home/trauco/google-cloud-sdk/path.zsh.inc' ]]; then
source '/home/trauco/google-cloud-sdk/path.zsh.inc'
fi
if [[ -f '/home/trauco/google-cloud-sdk/completion.zsh.inc' ]]; then
source '/home/trauco/google-cloud-sdk/completion.zsh.inc'
fi
#################################################################
# πŸ”„ UTILITY ALIASES
#################################################################
# Quick reload
alias reload-zsh='source ~/.zshrc && echo "βœ… .zshrc reloaded!"'
# Configuration editing
alias edit-zshrc='$EDITOR ~/.zshrc'
alias edit-custom='$EDITOR $ZSH/custom/'
# List custom files (your .zsh modules)
alias list-custom='echo "πŸ“¦ Custom .zsh files:" && ls -la $ZSH/custom/*.zsh 2>/dev/null || echo "No custom .zsh files found"'
#################################################################
# 🏁 DONE
#################################################################
# export PATH="$HOME/miniconda3/bin:$PATH" # commented out by conda initialize
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/trauco/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/trauco/miniconda3/etc/profile.d/conda.sh" ]; then
. "/home/trauco/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/home/trauco/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
unsetopt correct_all
alias vlc-cap="vlc v4l2:///dev/video0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment