added pre-cd command (#685)

* added special pre-cd command

* added documentation
This commit is contained in:
SPFab authored and GitHub committed 2021-08-23 17:11:56 +03:00
1 parent ff0933ca03
commit 05a48ea315
4 files changed
+43 -13

No files matched your search

+3
View File
@@ -1256,6 +1256,9 @@ You can add an extra call to make it run on startup as well:
Note that all shell commands are possible but `%` and `&` are usually more appropriate as `$` and `!` causes flickers and pauses respectively.
There is also a 'pre-cd' command, that works like 'on-cd', but is run before the directory is actually changed.
It is generally a bad idea, to put movement commands (like 'up' / 'top' etc.) here.
Colors
lf tries to automatically adapt its colors to the environment.