feat: Set $CMD_DURATION variable after each command
The variable is equal to the amount of WHOLE seconds spent executing the previous command. This variable is currently not set when running the PROMPT function, because this would mean that the CMD_DURATION would always refer to the time spent in the PROMPT function when running in interactive mode.
Showing
- src/binary/mod.rs 1 addition, 1 deletionsrc/binary/mod.rs
- src/binary/prompt.rs 20 additions, 19 deletionssrc/binary/prompt.rs
- src/lib/expansion/mod.rs 13 additions, 3 deletionssrc/lib/expansion/mod.rs
- src/lib/shell/flow.rs 16 additions, 3 deletionssrc/lib/shell/flow.rs
- src/lib/shell/mod.rs 1 addition, 1 deletionsrc/lib/shell/mod.rs
- src/lib/shell/shell_expand.rs 8 additions, 2 deletionssrc/lib/shell/shell_expand.rs
- src/lib/shell/variables.rs 7 additions, 1 deletionsrc/lib/shell/variables.rs
Loading
Please register or sign in to comment