# Path to your oh-my-zsh installation. export DOTFILES=${DOTFILES:-"$HOME/.dotfiles"} export ZSH="$DOTFILES/zsh/ohmyzsh" export ZSH_CUSTOM="$DOTFILES/zsh/custom" ZSH_THEME="agnoster_dx" zstyle ':omz:update' mode reminder # just remind me to update when it's time # zstyle ':omz:update' frequency 13 # CASE_SENSITIVE="true" # HYPHEN_INSENSITIVE="true" # DISABLE_MAGIC_FUNCTIONS="true" # DISABLE_AUTO_TITLE="true" # ENABLE_CORRECTION="true" COMPLETION_WAITING_DOTS="true" ZSH_DISABLE_COMPFIX="true" plugins=( git zsh-autosuggestions # Disabled because the highlighting conflicts with autosuggestions # history-substring-search vi-mode tmux colored-man-pages command-not-found dirhistory zsh-autopair ) bindkey -M vicmd "k" up-line-or-beginning-search bindkey -M vicmd "j" down-line-or-beginning-search HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="fg=yellow" HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND="fg=red" HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_TIMEOUT=3 VI_MODE_RESET_PROMPT_ON_MODE_CHANGE=true VI_MODE_SET_CURSOR=true # Might cause issues? KEYTIMEOUT=1 ZSH_TMUX_AUTOSTART=true ZSH_TMUX_AUTOCONNECT=false ZSH_TMUX_FIXTERM=true source $ZSH/oh-my-zsh.sh less_termcap[so]="${fg_bold[black]}${bg[white]}" export PATH="${HOME}/.local/bin:${HOME}/.cargo/bin:$PATH" export EDITOR=nvim # export GREP_COLORS="mt=01;32" alias cl="clear" if hash bat 2>/dev/null; then export BAT_THEME="gruvbox-dark" alias cat=bat fi if hash devcontainer 2>/dev/null; then dc() { ORIG_DIR="$PWD" while [[ "$PWD" != / ]] ; do if find "$PWD"/ -maxdepth 1 -type d -name ".devcontainer" | grep -q ".devcontainer"; then WORKSPACE_FOLDER="$PWD" builtin cd "$ORIG_DIR" devcontainer exec --workspace-folder "$WORKSPACE_FOLDER" $@ return 0 else builtin cd .. fi done builtin cd "$ORIG_DIR" echo "Unable to find workspace folder" return 1 } fi if hash pnpm 2>/dev/null; then export PNPM_HOME="/home/tim/.local/share/pnpm" case ":$PATH:" in *":$PNPM_HOME:"*) ;; *) export PATH="$PNPM_HOME:$PATH" ;; esac fi