Merge pull request #105 from qadzek/patch-1

docs: demonstrate how to use a command or script
This commit is contained in:
Valentin Uveges 2024-01-17 17:50:58 +02:00 committed by GitHub
commit 12051a2e94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,3 +30,7 @@ show_<module_name>() { # save this module in a file with the name <module_name>.
echo "$module"
}
```
To use the output of a command, use e.g. `local text="$(get_tmux_option "@catppuccin_test_text" "#(date +%T)")"`.
To use the output of a script, use e.g. `local text="$(get_tmux_option "@catppuccin_test_text" "#($HOME/my_script.sh)")"`.