Hello everybody,
I use this hotkey to open a shell in the current directory:
nnoremap s :shell<cr>
However, vifm is the parent process of this shell. This leads to the problem that when I mount a device, jump into it with vifm and open a shell there, and then e.g. cd ~
, I can't unmount the device because vifm still uses the device and therefore it is busy. I have to exit
the shell, quit vifm and then I can unmount the device.
Is it possible to open a shell in the current directory and also closing vifm in the background?
I tried
:nn s :shell<cr>:exit<cr>
, but there vifm is still open in the background.
Also using the script
#!/bin/sh
kill $PPID
zsh
and then using it with the key s
doesn't help because the now opened terminal is broken (letter buffer is going crazy).
Is there a way to do what I want? Thank you in advance.