Compare commits

..

3 Commits

Author SHA1 Message Date
Yax 1ac60bc1f0 Setup tmux plugin 3 weeks ago
Yax 67a76fc551 Migrate oh-my-zsh to zi 3 weeks ago
Yax cff9a17a6d Clean history configuration 3 weeks ago

@ -1,58 +1,26 @@
# If you come from bash you might have to change your $PATH. # Pre-requisite: zi (https://github.com/z-shell/zi)
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH # sh -c "$(curl -fsSL get.zshell.dev)" -- -i skip -b main
typeset -A ZI
# Path to your Oh My Zsh installation. ZI[BIN_DIR]="${HOME}/.zi/bin"
export ZSH="$HOME/.oh-my-zsh" source "${ZI[BIN_DIR]}/zi.zsh"
autoload -Uz _zi
# Set name of the theme to load (( ${+_comps} )) && _comps[zi]=_zi
ZSH_THEME="spaceship" # end of zi init
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment one of the following lines to change the auto-update behavior
# zstyle ':omz:update' mode disabled # disable automatic updates
# zstyle ':omz:update' mode auto # update automatically without asking
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
# Uncomment the following line to change how often to auto-update (in days).
# zstyle ':omz:update' frequency 13
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title. zi snippet OMZL::history.zsh
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction. zi light spaceship-prompt/spaceship-prompt
# ENABLE_CORRECTION="true" zi light zsh-users/zsh-autosuggestions
zi light zsh-users/zsh-syntax-highlighting
# Uncomment the following line to display red dots whilst waiting for completion.
# You can also set it to another string to have that shown instead of the default red dots.
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files zi is-snippet wait lucid for \
# under VCS as dirty. This makes repository status check for large repositories OMZP::{sdk,fzf} \
# much, much faster. has'nodenv' \
# DISABLE_UNTRACKED_FILES_DIRTY="true" OMZP::nodenv
# Plugins
# Custom plugins added to $ZSH_CUSTOM/plugins/
# - https://github.com/zsh-users/zsh-autosuggestions
# - https://github.com/zsh-users/zsh-syntax-highlighting.git
plugins=(fzf sdk nodenv zsh-autosuggestions zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:$HOME/.local/bin:$PATH
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# USER CONFIGURATION # USER CONFIGURATION
@ -74,22 +42,12 @@ fi
# History # History
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# set the maximum number of lines to be saved in the history file # Allow multiple sessions to append to one Zsh command history.
export HISTSIZE="50000"
export SAVEHIST="$HISTSIZE"
# append new history entries to the history file
setopt APPEND_HISTORY setopt APPEND_HISTORY
# save each command to the history file as soon as it is executed # Write to the history file immediately, not when the shell exits.
setopt INC_APPEND_HISTORY setopt INC_APPEND_HISTORY
# ignore recording duplicate consecutive commands in the history
setopt HIST_IGNORE_DUPS
# ignore commands that start with a space in the history
setopt HIST_IGNORE_SPACE
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Git # Git
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
@ -148,6 +106,14 @@ function ssh() {
fi fi
} }
export ZSH_TMUX_AUTOSTART=true
export ZSH_TMUX_AUTOSTART_ONCE=false
export ZSH_TMUX_AUTOCONNECT=true
export ZSH_TMUX_DEFAULT_SESSION_NAME=build
export ZSH_TMUX_CONFIG=$HOME/.tmux.conf
zi snippet OMZP::tmux
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Fzf # Fzf
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------

Loading…
Cancel
Save