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

+2
View File
@@ -1399,6 +1399,8 @@ This command runs whenever you change directory but not on startup. You can add
.EE
.PP
Note that all shell commands are possible but `%` and `&` are usually more appropriate as `$` and `!` causes flickers and pauses respectively.
.PP
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.
.SH COLORS
lf tries to automatically adapt its colors to the environment. It starts with a default colorscheme and updates colors using values of existing environment variables possibly by overwriting its previous values. Colors are set in the following order:
.PP