From b46aa7d467737acec2b4863ea8286a422787968a Mon Sep 17 00:00:00 2001 From: edge2992 Date: Mon, 30 Jun 2025 00:56:57 +0900 Subject: [PATCH] Add zsh configuration settings and aliases --- dot_zshrc | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/dot_zshrc b/dot_zshrc index 2f5e4ea..7b4c89e 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -1,5 +1,16 @@ -# Created by newuser for 5.8.1 +# zsh configuration file +export HISTFILE=$HOME/.zsh_history +export HISTSIZE=10000 +export SAVEHIST=10000 +setopt APPEND_HISTORY +setopt SHARE_HISTORY +setopt HIST_EXPIRE_DUPS_FIRST +setopt HIST_IGNORE_ALL_DUPS +setopt HIST_REDUCE_BLANKS +setopt EXTENDED_HISTORY + +# alias for zsh alias vim='nvim' alias g='cd $(ghq list -p | fzf)' @@ -10,3 +21,13 @@ command -v eza &> /dev/null && alias ls='eza --group --git --group-directories-f eval "$(sheldon source)" eval "$(starship init zsh)" +# fzf integration +# if (( $+commands[fzf] )); then +# source <(fzf --zsh) +# fi + +# setup when compinit is available +if type compinit >/dev/null 2>&1; then + autoload -Uz compinit + compinit -C +fi