I'd like to open images using feh from vifm.
In my bash_alias I have a command that configures feh for use in a tiling window manager (suggestions for improvements are welcome):
# Show entire image, scaled down to window size
alias feh='feh --scale-down --title="%f %h/%wpx, zoom: %z, %u of %l"'
In my vifmrc, I have this to associate images with feh:
filetype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.webp,*.svg,*.svgz,*.xpm,*.pbm,*.ppm,*.ico,*.tif,*.tiff feh %f & %i
But when I open an image with feh from inside vifm, it seems the alias is ignored.
Is this expected behavior?
Can I make vifm use my aliases from bash_alias?
This is how shells work non-interactively.
The first one is probably the most convenient.
Thanks, set shellcmdflag=-lc made the alias work in vifm. I get a Background Process Error though when opening an image with feh from vifm: "stty: 'standard input': Inappropriate ioctl for device". But I can silence that by putting feh %c %i & into vifmrc.
feh %c %i &
The error is a result of calling stty without a terminal.
You can do something like:
if tty -s; then
Thanks xaizek. Let me just say that you're doing a tremendous job of documenting Vifm and providing support for it (and beyond). Thank you