I am trying to execute this custom function stored in my .bashrc
function nvrcreate {
NVIM_LISTEN_ADDRESS=/tmp/Unity nvim
}
on a new terminal. This command by itself creates a socket for neovim to listen to. If I execute it in a terminal it works great, but I can't get it to work as a single command that opens a new terminal and executes it.
I am using st
(suckless / simple terminal) on Manjaro linux.
I have tried it using nohup
and the -e
flag that allows st
to execute a command on opening a new terminal, but couldn't manage to have it working.
Also, in most of my attempts, I have gotten some kind of child exited with status 1
, and sometimes it simply works for a fraction of a second and then exits.