How to run a piped function on start for alacritty?

507 views Asked by At

I want to run tmuxp $(ls | fzf) on starting alacritty, is that possible? I am sure I have to change the program and args key in alacritty.yml, but it just doesn't work.

This is my current config:

shell:
  program: tmuxp
  args:
    - $(ls | fzf)
env:
1

There are 1 answers

1
Tomasz Karbownicki On

As mentioned here you need to spawn a shell first.

- bash -c "ls | fzf"