Skip to content

Commit

Permalink
install fzf
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyuga-Tsukui committed Apr 2, 2024
1 parent 696fe1f commit 0655039
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .chezmoidata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ packages:
- 'homebrew/cask-versions'
- 'homebrew/cask-fonts'
brews:
- 'fzf'
- 'gh'
- 'git'
- 'jq'
Expand All @@ -12,7 +13,6 @@ packages:
- 'zsh-autosuggestions'
- 'zsh-completions'
casks:
- 'font-ricty-diminished'
- 'wezterm-nightly'
- 'font-cousine-nerd-font'
- 'font-fira-code-nerd-font'

9 changes: 9 additions & 0 deletions dot_zshrc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ setopt auto_menu # 補完キー(Tab, Ctrl+I) を連打するだけで順に
setopt auto_param_slash # パラメータ展開時に末尾のスラッシュを自動で補完する
zstyle ':completion:*' list-colors di=34 fi=0 # 補完候補の色を設定

eval "$(fzf --zsh)"

# incremental git switch
fsw() {
local branches branch
branches=$(git branch -vv) &&
branch=$(echo "$branches" | fzf +m) &&
git switch $(echo "$branch" | awk '{print $1}' | sed "s/.* //")
}

# https://volta.sh/
export VOLTA_HOME="$HOME/.volta"
Expand Down

0 comments on commit 0655039

Please sign in to comment.