This commit is contained in:
Rikuoh Tsujitani 2023-11-22 07:12:33 +09:00
parent 09f085c1c5
commit eb3427889c
Signed by: riq0h
GPG key ID: 010F09DEA298C717

12
.zshrc
View file

@ -50,14 +50,14 @@ alias tlscd='sudo tailscale down'
export FZF_TMUX="1"
export FZF_TMUX_OPTS="-p 50%"
export FZF_CTRL_R_OPTS="--reverse --preview 'echo {}' --preview-window=border-sharp,down:3:hidden:wrap --bind '?:toggle-preview'"
export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --iglob "!**/.git/*"'
export FZF_DEFAULT_COMMAND='rg --files --follow --iglob "!**/.git/*"'
export FZF_DEFAULT_OPTS="--ansi --no-separator --no-scrollbar --reverse --border=none \
--color=bg+:#1c1e26,bg:#1c1e26,spinner:#ee64ac,hl:#e95678 \
--color=fg:#d5d8da,header:#e95678,info:#e95678,pointer:#ee64ac \
--color=marker:#ee64ac,fg+:#d5d8da,prompt:#e95678,hl+:#e95678"
export FZF_CTRL_T_COMMAND='rg --files --hidden --follow --iglob "!**.git/*"'
export FZF_CTRL_T_OPTS="--preview 'bat --color=always --style=plain --line-range :100 {}' --preview-window=border-sharp,down:70%"
export FZF_ALT_C_OPTS="--preview 'exa {} -h -T -F --no-user --no-time --no-filesize --no-permissions --long | head -200' --preview-window=border-sharp,hidden:down:70% --bind '?:toggle-preview'"
export FZF_CTRL_T_COMMAND='rg --files --follow --iglob "!**.git/*"'
export FZF_CTRL_T_OPTS="--preview 'bat --color=always --style=plain --line-range :100 {}' --preview-window=border-sharp,right:60%"
export FZF_ALT_C_OPTS="--preview 'exa {} -h -T -F --no-user --no-time --no-filesize --no-permissions --long | head -200' --preview-window=border-sharp,hidden:right:60% --bind '?:toggle-preview'"
export RUNEWIDTH_EASTASIAN=0
bindkey '^[t' fzf-file-widget
bindkey '^[r' fzf-history-widget
@ -83,8 +83,8 @@ fadd() {
fv() {
local file
file=$(
rg --files --hidden --follow --glob "!**/.git/*" | fzf-tmux -p 50% \
--preview 'bat --color=always --style=plain {}' --preview-window=border-sharp,down:70%
rg --files --follow --glob "!**/.git/*" | fzf-tmux -p 50% \
--preview 'bat --color=always --style=plain {}' --preview-window=border-sharp,right:60%
)
v "$file"
}