dylanaraps / fff

📁 A simple file manager written in bash.
MIT License
4.07k stars 171 forks source link

Enable cd on exit by sourcing the main script #193

Open Roy-Orbison opened 1 year ago

Roy-Orbison commented 1 year ago

This patch makes it so that Bash users need only run this to enable the change directory feature:

. fff

It still respects the environment, so this invocation won't cd:

FFF_CD_ON_EXIT=0 fff

The default behaviour is easily restored:

unset fff