Helper functions refactoring

This commit is contained in:
Bruno Sutic committed 2015-08-03 15:17:07 +02:00
1 parent eab403b6d8
commit 5adc9a987f
11 files changed
+59 -97

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
echo_ok() {
echo "$*"
}
echo_err() {
fail_helper "$*"
}
+19
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."
}
+3
View File
@@ -0,0 +1,3 @@
reload_tmux_environment() {
tmux source-file ~/.tmux.conf >/dev/null 2>&1
}