I'm on Debian 11 with vifm version 0.10.1
The relevant lines in my ~/.vifm/vifmrc
are:
" do a `git add` on the current file
command! gitadd git-add %f
" open file in new screen session when vifm is opened in gnu screen
screen!
and the first command references a script at ~/.vifm/scripts/git-add
:
#!/bin/bash
echo "git add $@" > /tmp/x
git add "$@"
If I comment out screen!
then when I select a file in vifm and type :gitadd
and hit enter it works and performs the git add. But when I run vifm with the screen!
command present then this :gitadd
does nothing.
I need the functionality of both of these things. Do I need to add something to the command!
to make this work, or is this a bug?