Sample Header Ad - 728x90

Leaving VIFM in such a way that the terminal directory is the same as the last visited VIFM directory

2 votes
3 answers
3060 views
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: > 1. Add special command to vifmrc command Q :execute '!echo %d > ~/.vifm/lastdir' | quit > 2. Add an alias to .bashrc alias vifm='source ~/bin/vf' > 3. 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?
Asked by George (1899 rep)
Oct 5, 2014, 08:32 PM
Last activity: Dec 4, 2021, 01:11 PM