File: vfu-bash

package info (click to toggle)
vfu 5.09-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,552 kB
  • sloc: cpp: 16,739; ansic: 2,605; perl: 678; makefile: 349; sh: 75
file content (22 lines) | stat: -rw-r--r-- 500 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

most simple way to have VFU to exit to different directory 
is to have this bash function in ~/.profile or similar location:

function vfu() 
  { 
  /usr/local/bin/vfu $*; 
  cd "`cat /tmp/vfu.exit.$USER`";
  rm -f /tmp/vfu.exit.$USER; 
  }

if you do not want this file to be in the system-wide /tmp directory, you can 
change it in ~/.profile or similar location:


export VFU_EXIT=/home/cade/tmp/vfu.exit.tmp 
function vfu() 
  { 
  ~/bin/vfu $*; 
  cd "`cat $VFU_EXIT`";
  rm -f $VFU_EXIT; 
  }