configurable cd hook

Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
Ava Apples Affine 2024-02-20 14:27:11 -08:00
parent 6351ac63d2
commit 50ebfd2e37
4 changed files with 77 additions and 29 deletions

View file

@ -143,6 +143,9 @@ Flesh also provides a ~cd~ utility to change current working directory:
(cd (concat HOME '/repositories')) ;; $ cd ~/repositories
#+END_EXAMPLE
This ~cd~ routine will keep the ~PWD~ variable up to date.
Every invokation of ~cd~ will call whatever lambda or function is stored in ~CFG_FLESH_CD_CB~ with no arguments. A function stored in this variable can then perform on the fly reconfiguration or set additional variables based on the directory that the user has entered.
** Creating bindings for shell commands
Daily Flesh users will long for first class shell commands that are accounted for in autocomplete.