-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.fzfrc
45 lines (40 loc) · 1.27 KB
/
.fzfrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env zsh
# https://junegunn.github.io/fzf/
export FZF_DEFAULT_COMMAND="fd --type f"
export FZF_DEFAULT_OPTS="
--color bg+:-1
--color border:#5c617d
--color fg:#5c617d
--color fg+:#cccccc
--color gutter:-1
--color header:#eccef0
--color header:italic
--color hl:#f096b7
--color hl+:#f096b7
--color info:#c9ccfb
--color marker:#f3b175
--color pointer:#d2fd9d
--color prompt:#f3b175
--color spinner:#c4effa
--header 'Preview File Content'
--layout reverse
--marker '*'
--pointer ''
--prompt ' '
--tmux center
--walker-skip .git,node_modules,target
"
export FZF_CTRL_T_OPTS="
--bind 'ctrl-/:change-preview-window(down|hidden|)'
--preview 'bat -n --color=always {}'
"
export FZF_CTRL_R_OPTS="
--bind 'ctrl-y:execute-silent(echo -n {2..} | pbcopy)+abort'
--header 'Press CTRL-Y to copy command into clipboard'
--preview 'echo {2..} | bat --color=always -pl sh'
--preview-window 'wrap:up:3'
"
export FZF_ALT_C_OPTS="
--header 'Change Directory to...'
--preview 'tree -aCI \".git|.github\" {}'
"