cd path arg can be a symbol (shell ease)
Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
parent
50ebfd2e37
commit
108e25e336
3 changed files with 9 additions and 3 deletions
|
|
@ -146,6 +146,10 @@ Flesh also provides a ~cd~ utility to change current working directory:
|
|||
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.
|
||||
|
||||
WARNING: Symbols will be taken as strings unless wrapped in a form.
|
||||
> Example: cd HOME => cd 'HOME'
|
||||
> Example: cd (eval HOME) => cd /path/to/home/dir
|
||||
|
||||
** Creating bindings for shell commands
|
||||
Daily Flesh users will long for first class shell commands that are accounted for in autocomplete.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue