15 lines
		
	
	
		
			234 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			234 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
tmp="$(mktemp)"
 | 
						|
 | 
						|
lfrun -last-dir-path="$tmp" "$@"
 | 
						|
if [ -f "$tmp" ]; then
 | 
						|
	dir="$(cat "$tmp")"
 | 
						|
    rm -f "$tmp"
 | 
						|
    if [ -d "$dir" ]; then
 | 
						|
        if [ "$dir" != "$(pwd)" ]; then
 | 
						|
            cd "$dir"
 | 
						|
        fi
 | 
						|
    fi
 | 
						|
fi
 |