I'm trying to achieve what was described in the title. I followed these directions (http://sourceforge.net/p/vifm/feature-requests/24/) but they did not work. Here are the instructions I followed:
- Add special command to vifmrc command Q :execute '!echo %d > ~/.vifm/lastdir' | quit
- Add an alias to .bashrc alias vifm='source ~/bin/vf'
- Save the following script to ~/bin/vf if [ -f ~/.vifm/lastdir ]; then rm ~/.vifm/lastdir fi /usr/local/bin/vifm "$@" if [ -f ~/.vifm/lastdir ]; then cd cat ~/.vifm/lastdir fi
I'm most skeptical of (3). I had to create a "bin" folder in my home directory, and then create a "vf" file within the new "bin" to then place the text described in (3). Did I proceed correctly here?
~/bin
in your $PATH? Is~/bin/vf
executable? Isvifm
installed at/usr/local/bin/
? Personally, I am sceptical about (3) as well... – jasonwryan Oct 05 '14 at 20:39echo $PATH
will tell you whether~/bin
is included.cd ~/bin && ls -la
will show an-x
at the end of the string for executable for that script. – jasonwryan Oct 05 '14 at 20:46