Skip to content

Instantly share code, notes, and snippets.

@kamerk22
Created July 1, 2026 07:28
Show Gist options
  • Select an option

  • Save kamerk22/637e49127a55f45e012c385cf06c0209 to your computer and use it in GitHub Desktop.

Select an option

Save kamerk22/637e49127a55f45e012c385cf06c0209 to your computer and use it in GitHub Desktop.
Zsh
# Enable persistent history
HISTFILE=~/.zsh_history
HISTSIZE=100000
SAVEHIST=100000
setopt HIST_SAVE_NO_DUPS
setopt INC_APPEND_HISTORY
# Move to directories without cd
setopt autocd
# Initialize completion
autoload -U compinit; compinit
# ===============================
# Zinit Bootstrap
# ===============================
ZINIT_HOME="$HOME/.local/share/zinit/zinit.git"
if [[ ! -f "$ZINIT_HOME/zinit.zsh" ]]; then
mkdir -p "$(dirname "$ZINIT_HOME")"
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
fi
source "$ZINIT_HOME/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
# ===============================
# Plugins (ORDER MATTERS)
# ===============================
# History search
zinit ice lucid
zinit light zdharma-continuum/history-search-multi-word
# Directory jumping
zinit ice lucid
zinit light agkozak/zsh-z
# Autosuggestions (async)
zinit ice wait'0' lucid atload'_zsh_autosuggest_start'
zinit light zsh-users/zsh-autosuggestions
# Completions
zinit ice blockf wait'0' lucid
zinit light zsh-users/zsh-completions
# Syntax highlighting (LAST plugin)
zinit ice wait'0' lucid atload'ZINIT[COMPINIT_OPTS]=-C; zicompinit'
zinit light zdharma-continuum/fast-syntax-highlighting
zi ice as"completion"
zi snippet OMZP::docker
zi snippet OMZP::docker-compose
# ===============================
# Powerlevel10k (LAST)
# ===============================
zinit ice depth=1
zinit light romkatv/powerlevel10k
[[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh
### End of Zinit's installer chunk
source ~/.config/zsh/alias.zsh
export SSH_AUTH_SOCK="$HOME/.bitwarden-ssh-agent.sock"
if [[ -z "$ZELLIJ" && -z "$SSH_TTY" ]]; then
zellij attach -c
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
export TERM=xterm-256color
export PATH="$HOME/.tfenv/bin:$PATH"
export PATH="$PATH:/opt/phpstrome/bin"
source /home/jin/.profile
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment