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
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user