From 31998fe73d1f3e5057bac3e36b67db97be6f9324 Mon Sep 17 00:00:00 2001 From: Hiroto Kitazawa Date: Thu, 5 Mar 2026 21:33:22 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20Prezto=E4=BE=9D=E5=AD=98=E3=82=92?= =?UTF-8?q?=E5=89=A5=E3=81=8C=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- symlinks/files/auto-link/.zpreztorc | 7 +------ symlinks/files/auto-link/.zshrc | 28 ++++++++++++++++++++++++---- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/symlinks/files/auto-link/.zpreztorc b/symlinks/files/auto-link/.zpreztorc index 9d87893..a7df1c0 100644 --- a/symlinks/files/auto-link/.zpreztorc +++ b/symlinks/files/auto-link/.zpreztorc @@ -31,16 +31,11 @@ zstyle ':prezto:load' pmodule \ 'terminal' \ 'editor' \ 'history' \ - 'directory' \ 'spectrum' \ 'utility' \ 'completion' \ 'history-substring-search' \ - 'prompt' \ - 'git' \ - 'homebrew' \ - 'osx' \ - 'docker' + 'prompt' # # Autosuggestions diff --git a/symlinks/files/auto-link/.zshrc b/symlinks/files/auto-link/.zshrc index c79bbfb..42f9f73 100644 --- a/symlinks/files/auto-link/.zshrc +++ b/symlinks/files/auto-link/.zshrc @@ -8,15 +8,35 @@ fi # alias rmdir="rm -rf" alias repo="gh repo view -w" +alias g="git" +alias gb="git branch" +alias gba="git branch --all --verbose" +alias gbd="git branch --delete" +alias gco='git checkout' # # setopt 関連 # -# rm * で確認しない -setopt rm_star_silent - +# cdを入力しなくてもディレクトリを自動的に移動する +setopt AUTO_CD +# 古いディレクトリをスタックにプッシュする +setopt AUTO_PUSHD +# スタックを重複して保存しない +setopt PUSHD_IGNORE_DUPS +# pushdとpopd後にディレクトリスタックを出力しない +setopt PUSHD_SILENT +# 引数が指定されていない場合はホームディレクトリへ +setopt PUSHD_TO_HOME +# 引数として変数を使用できるようにする +setopt CDABLE_VARS +# 複数のファイルに対してリダイレクトできるようにする +setopt MULTIOS # 拡張グロブを有効化 -setopt extended_glob +setopt EXTENDED_GLOB +# 既存ファイルを > と >> で上書きしない。上書きする場合は >! か >>! を使う。 +unsetopt CLOBBER +# rm * で確認しない +setopt RM_STAR_SILENT # # bindkey関連