2022-11-21 05:52:11 +08:00
|
|
|
# A list of functions to run after changing directory. These functions are always
|
|
|
|
# called with directory to change it, which might be a relative path. The
|
|
|
|
# following example also shows `$before-chdir`:
|
|
|
|
#
|
|
|
|
# ```elvish-transcript
|
|
|
|
# ~> set before-chdir = [{|dir| echo "Going to change to "$dir", pwd is "$pwd }]
|
|
|
|
# ~> set after-chdir = [{|dir| echo "Changed to "$dir", pwd is "$pwd }]
|
|
|
|
# ~> cd /usr
|
|
|
|
# Going to change to /usr, pwd is /Users/xiaq
|
|
|
|
# Changed to /usr, pwd is /usr
|
|
|
|
# /usr> cd local
|
|
|
|
# Going to change to local, pwd is /usr
|
|
|
|
# Changed to local, pwd is /usr/local
|
|
|
|
# /usr/local>
|
|
|
|
# ```
|
|
|
|
#
|
|
|
|
# **Note**: The use of `echo` above is for illustrative purposes. When Elvish
|
|
|
|
# is used interactively, the working directory may be changed in location mode
|
|
|
|
# or navigation mode, and outputs from `echo` can garble the terminal. If you
|
|
|
|
# are writing a plugin that works with the interactive mode, it's better to use
|
|
|
|
# [`edit:notify`](edit.html#edit:notify).
|
|
|
|
#
|
|
|
|
# @cf $before-chdir
|
2022-11-22 22:13:25 +08:00
|
|
|
var after-chdir
|
2022-11-21 05:52:11 +08:00
|
|
|
|
|
|
|
# A list of functions to run before changing directory. These functions are always
|
|
|
|
# called with the new working directory.
|
|
|
|
#
|
|
|
|
# @cf $after-chdir
|
2022-11-22 22:13:25 +08:00
|
|
|
var before-chdir
|
2022-11-21 05:52:11 +08:00
|
|
|
|
|
|
|
# Number of background jobs.
|
2022-11-22 22:13:25 +08:00
|
|
|
var num-bg-jobs
|
2022-11-21 05:52:11 +08:00
|
|
|
|
|
|
|
# Whether to notify success of background jobs, defaulting to `$true`.
|
|
|
|
#
|
|
|
|
# Failures of background jobs are always notified.
|
2022-11-22 22:13:25 +08:00
|
|
|
var notify-bg-job-success
|
2022-11-21 05:52:11 +08:00
|
|
|
|
|
|
|
# A string put before value outputs (such as those of `put`). Defaults to
|
|
|
|
# `'▶ '`. Example:
|
|
|
|
#
|
|
|
|
# ```elvish-transcript
|
|
|
|
# ~> put lorem ipsum
|
|
|
|
# ▶ lorem
|
|
|
|
# ▶ ipsum
|
|
|
|
# ~> set value-out-indicator = 'val> '
|
|
|
|
# ~> put lorem ipsum
|
|
|
|
# val> lorem
|
|
|
|
# val> ipsum
|
|
|
|
# ```
|
|
|
|
#
|
|
|
|
# Note that you almost always want some trailing whitespace for readability.
|
2022-11-22 22:13:25 +08:00
|
|
|
var value-out-indicator
|