Skip to content

Instantly share code, notes, and snippets.

@hbread00
Last active October 24, 2025 10:05
Show Gist options
  • Select an option

  • Save hbread00/144bd30e00f9247d63e32152bc393bbd to your computer and use it in GitHub Desktop.

Select an option

Save hbread00/144bd30e00f9247d63e32152bc393bbd to your computer and use it in GitHub Desktop.
my zshrc
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_SAVE_NO_DUPS
setopt HIST_REDUCE_BLANKS
setopt APPEND_HISTORY
setopt CORRECT
setopt NO_BEEP
setopt INTERACTIVE_COMMENTS
export PATH="$HOME/.local/bin:$HOME/bin:/usr/local/bin:/usr/bin:$PATH"
HISTSIZE=1024
SAVEHIST=1024
HISTFILE=~/.zsh_history
alias ls='ls --color=auto'
alias ll='ls -lAh --color=auto'
alias grep='grep --color=auto'
alias diff='diff --color=auto'
alias less='less -R'
alias cp='cp -iv'
alias mv='mv -iv'
alias rm='rm -vI'
alias mkdir='mkdir -pv'
alias rmdir='rmdir -v'
alias df='df -h'
alias du='du -h --max-depth=1'
alias sudo='doas'
alias aptup='doas apt update && apt list --upgradable && doas apt upgrade'
alias aptrm='doas apt autoremove && doas apt autoclean'
alias aptls='apt list --installed'
autoload -Uz compinit && compinit
autoload -Uz colors && colors
bindkey '^[[1;5C' forward-word
bindkey '^[[1;5D' backward-word
eval "$(starship init zsh)"
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment