make_prompt_rs/source.sh

9 lines
153 B
Bash
Raw Normal View History

2024-04-15 14:18:26 +00:00
bin_path=$(pwd)/target/debug/make_prompt
PROMPT_COMMAND='make_prompt'
make_prompt () {
local prompt_pref=$($bin_path $?)
PS1="$prompt_pref"
}