tmux tpm plugin

This commit is contained in:
Florian Schmitt 2023-12-30 14:54:30 +03:00
parent 960495c8f1
commit 04c275c97d
45 changed files with 2126 additions and 1 deletions

View file

@ -0,0 +1,13 @@
check_dir_exists_helper() {
[ -d "$1" ]
}
# runs the scripts and asserts it has the correct output and exit code
script_run_helper() {
local script="$1"
local expected_output="$2"
local expected_exit_code="${3:-0}"
$script 2>&1 |
grep "$expected_output" >/dev/null 2>&1 && # grep -q flag quits the script early
[ "${PIPESTATUS[0]}" -eq "$expected_exit_code" ]
}