Skip to content

Instantly share code, notes, and snippets.

@hutusi
Created March 29, 2026 11:59
Show Gist options
  • Select an option

  • Save hutusi/8bfb9961faa12107fab826afadaedb77 to your computer and use it in GitHub Desktop.

Select an option

Save hutusi/8bfb9961faa12107fab826afadaedb77 to your computer and use it in GitHub Desktop.
zshrc
# --- 1. HISTORY SETTINGS ---
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt APPEND_HISTORY
setopt SHARE_HISTORY
setopt HIST_IGNORE_DUPS
setopt HIST_REDUCE_BLANKS
# --- 2. KEY BINDINGS (Type + Up Arrow to search) ---
bindkey '^[[A' up-line-or-search
bindkey '^[[B' down-line-or-search
# --- 3. PLUGINS ---
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# --- 4. ALIASES (Your productivity shortcuts) ---
alias ls='ls --color=auto'
alias ll='ls -lah' # Detailed list, including hidden files and human-readable sizes
alias l='ls -CF' # Simple list with markers for directories
alias ..='cd ..' # Go up one directory
alias ...='cd ../..' # Go up two directories
alias .3='cd ../../..'# Go up three directories
# --- 5. PROMPT (Starship) ---
eval "$(starship init zsh)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment