Helper functions refactoring

This commit is contained in:
Bruno Sutic
2015-08-03 15:12:45 +02:00
parent eab403b6d8
commit 5adc9a987f
11 changed files with 59 additions and 97 deletions

View File

@ -0,0 +1,7 @@
echo_ok() {
echo "$*"
}
echo_err() {
fail_helper "$*"
}

View File

@ -0,0 +1,19 @@
tmux_echo() {
local message="$1"
tmux run-shell "echo '$message'"
}
echo_ok() {
tmux_echo "$*"
}
echo_err() {
tmux_echo "$*"
}
end_message() {
tmux_echo ""
tmux_echo "TMUX environment reloaded."
tmux_echo ""
tmux_echo "Done, press ENTER to continue."
}

View File

@ -0,0 +1,3 @@
reload_tmux_environment() {
tmux source-file ~/.tmux.conf >/dev/null 2>&1
}