m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

Improve i3 example by allowing FZF_DEFAULT_OPTIONS to be set

HernanIbarraMejia
2025-05-22 18:27:09 +01:00
parent 611f8e2149
commit c106d0a6c1

@@ -2150,6 +2150,10 @@ Display in a floating window. Add this to your i3 config file (this example uses
bindsym $mod+d exec --no-startup-id termite -t 'fzf-menu' -e 'i3-dmenu-desktop --dmenu=fzf' bindsym $mod+d exec --no-startup-id termite -t 'fzf-menu' -e 'i3-dmenu-desktop --dmenu=fzf'
for_window [title="fzf-menu"] floating enable for_window [title="fzf-menu"] floating enable
``` ```
This, however, will likely not use `FZF_DEFAULT_OPTIONS` because i3-dmenu-desktop launches fzf in a non-interactive shell, so files like .bashrc and .zshrc won't be sourced. If this is a problem for you, you can forcibly start an interactive shell. Here is an example with zsh (using urxvt instead of termite):
```
bindsym $mod+d exec --no-startup-id urxvt -title 'fzf-menu' -e i3-dmenu-desktop --dmenu='zsh -i -c fzf'
```
### Man pages ### Man pages
Quickly display a man page using fzf and fd. Quickly display a man page using fzf and fd.