Skip to content

Commit

Permalink
zsh: fix config for zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuN6211 committed Oct 7, 2024
1 parent e6e4c31 commit ca99002
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions config/zsh/lazy.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ darwin*)
esac

# fzf
export FZF_DEFAULT_OPTS='--reverse'
export FZF_DEFAULT_OPTS='--reverse --border --ansi --bind="ctrl-d:print-query,ctrl-p:replace-query"'
export FZF_DEFAULT_COMMAND='fd --hidden --color=always'

# alias
alias ls="ls -F"
Expand All @@ -20,8 +21,6 @@ alias lla="ls -la"
alias mkdir="mkdir -p"
alias python="python3"

# zsh_sessionsを作らない
# export SHELL_SESSIONS_DISABLE=1
setopt AUTO_PUSHD
setopt PUSHD_IGNORE_DUPS
setopt GLOBDOTS
Expand All @@ -32,21 +31,21 @@ setopt HIST_IGNORE_SPACE
setopt HIST_REDUCE_BLANKS
setopt HIST_SAVE_NO_DUPS
setopt INTERACTIVE_COMMENTS
setopt NO_SHARE_HISTORY # 少し微妙
setopt NO_SHARE_HISTORY
setopt MAGIC_EQUAL_SUBST
setopt PRINT_EIGHT_BIT
setopt NO_FLOW_CONTROL
# ../ の後は今いるディレクトリを補完しない
zstyle ':completion:*' ignore-parents parent pwd ..
setopt correct
setopt no_beep
setopt AUTO_PARAM_KEYS
# 補完で大文字にもマッチ
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
# 塗りつぶし
zstyle ':completion:*' menu select
## 補完候補を一覧表示したとき、Tabや矢印で選択できるようにする
zstyle ':completion:*:default' menu select=1
# ../ の後は今いるディレクトリを補完しない
zstyle ':completion:*' ignore-parents parent pwd ..
setopt correct
setopt no_beep
setopt AUTO_PARAM_KEYS

### key-bindings
bindkey "^A" beginning-of-line # C-a
Expand Down

0 comments on commit ca99002

Please sign in to comment.