-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
- Loading branch information
1 parent
b0af4fc
commit 42fe9f3
Showing
1 changed file
with
46 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,51 @@ | ||
_gen_fzf_default_opts() { | ||
local background='#0f1117' | ||
local bblack='#575860' | ||
local bg3='#29394f' | ||
local bg4='#39605d' | ||
local black='#000000' | ||
local blue='#719cd6' | ||
local cyan='#63cdcf' | ||
local foreground='#cdcecf' | ||
local green='#81b29a' | ||
local magenta='#9d79d6' | ||
local red='#ff0000' | ||
local white='#fdfefe' | ||
local yellow='#f9e79f' | ||
(( ! $+commands[fzf] )) && { | ||
_gen_fzf_default_opts() { | ||
local background='#0f1117' | ||
local bblack='#575860' | ||
local bg3='#29394f' | ||
local bg4='#39605d' | ||
local black='#000000' | ||
local blue='#719cd6' | ||
local cyan='#63cdcf' | ||
local foreground='#cdcecf' | ||
local green='#81b29a' | ||
local magenta='#9d79d6' | ||
local red='#ff0000' | ||
local white='#fdfefe' | ||
local yellow='#f9e79f' | ||
|
||
export FZF_DEFAULT_OPTS=" | ||
--color bg+:$bg3 | ||
--color bg:$background | ||
--color border:$bg4 | ||
--color fg+:$yellow | ||
--color fg:$bblack | ||
--color gutter:$background | ||
--color header:$white | ||
--color hl+:$magenta | ||
--color hl:$magenta | ||
--color info:$yellow | ||
--color marker:$blue | ||
--color pointer:$white | ||
--color prompt:$white | ||
--color spinner:$green | ||
--info inline | ||
--layout reverse | ||
--marker '+ ' | ||
--padding 2,5 | ||
--pointer '>' | ||
--prompt '> ' | ||
" | ||
} | ||
export FZF_DEFAULT_OPTS=" | ||
--color bg+:$bg3 | ||
--color bg:$background | ||
--color border:$bg4 | ||
--color fg+:$yellow | ||
--color fg:$bblack | ||
--color gutter:$background | ||
--color header:$white | ||
--color hl+:$magenta | ||
--color hl:$magenta | ||
--color info:$yellow | ||
--color marker:$blue | ||
--color pointer:$white | ||
--color prompt:$white | ||
--color spinner:$green | ||
--info inline | ||
--layout reverse | ||
--marker '+ ' | ||
--padding 2,5 | ||
--pointer '>' | ||
--prompt '> ' | ||
" | ||
} | ||
|
||
_gen_fzf_default_opts | ||
_gen_fzf_default_opts | ||
|
||
export FZF_DEFAULT_COMMAND="rg --files --hidden --follow --glob '!.git'" | ||
(( ! $+commands[rg] )) && { | ||
export FZF_DEFAULT_COMMAND="rg --files --hidden --follow --glob '!.git'" | ||
} | ||
|
||
[[ $- == *i* ]] && { | ||
source "$(brew --prefix)/opt/fzf/shell/completion.zsh" | ||
source "$(brew --prefix)/opt/fzf/shell/key-bindings.zsh" | ||
if (( ! $+commands[brew] )) && [[ $- == *i* ]] { | ||
source "$(brew --prefix)/opt/fzf/shell/completion.zsh" | ||
source "$(brew --prefix)/opt/fzf/shell/key-bindings.zsh" | ||
} | ||
} |