diff --git a/src/main.cc b/src/main.cc index 81ad37bc..79a55965 100644 --- a/src/main.cc +++ b/src/main.cc @@ -93,6 +93,10 @@ void register_env_vars() "timestamp", false, [](StringView name, const Context& context) -> String { return to_string(context.buffer().timestamp()); } + }, { + "curr_history_id", false, + [](StringView name, const Context& context) -> String + { return to_string(context.buffer().current_history_id()); } }, { "selection", false, [](StringView name, const Context& context)