Rename display_message
-> echo_message
This commit is contained in:
parent
86b5c3ab7e
commit
9a27de4193
2 changed files with 12 additions and 11 deletions
|
@ -8,6 +8,7 @@
|
||||||
- update list of plugins in the README
|
- update list of plugins in the README
|
||||||
- remove README 'about' section
|
- remove README 'about' section
|
||||||
- move key binding to the main file. Delete `key_binding.sh`.
|
- move key binding to the main file. Delete `key_binding.sh`.
|
||||||
|
- rename `display_message` -> `echo_message`
|
||||||
|
|
||||||
### v0.0.2, 2014-07-17
|
### v0.0.2, 2014-07-17
|
||||||
- run all *.tmux plugin files as executables
|
- run all *.tmux plugin files as executables
|
||||||
|
|
|
@ -6,16 +6,16 @@ source "$CURRENT_DIR/shared_functions.sh"
|
||||||
|
|
||||||
# TMUX messaging is weird. You only get a nice clean pane if you do it with
|
# TMUX messaging is weird. You only get a nice clean pane if you do it with
|
||||||
# `run-shell` command.
|
# `run-shell` command.
|
||||||
display_message() {
|
echo_message() {
|
||||||
local message=$1
|
local message=$1
|
||||||
tmux run-shell "echo '$message'"
|
tmux run-shell "echo '$message'"
|
||||||
}
|
}
|
||||||
|
|
||||||
end_message() {
|
end_message() {
|
||||||
display_message ""
|
echo_message ""
|
||||||
display_message "TMUX environment reloaded."
|
echo_message "TMUX environment reloaded."
|
||||||
display_message ""
|
echo_message ""
|
||||||
display_message "Done, press ENTER to continue."
|
echo_message "Done, press ENTER to continue."
|
||||||
}
|
}
|
||||||
|
|
||||||
clone() {
|
clone() {
|
||||||
|
@ -53,16 +53,16 @@ sync_plugin() {
|
||||||
local plugin=$1
|
local plugin=$1
|
||||||
if plugin_already_cloned "$plugin"; then
|
if plugin_already_cloned "$plugin"; then
|
||||||
# plugin is already cloned - update it
|
# plugin is already cloned - update it
|
||||||
display_message "Updating $plugin"
|
echo_message "Updating $plugin"
|
||||||
pull_changes "$plugin" &&
|
pull_changes "$plugin" &&
|
||||||
display_message " $plugin update success" ||
|
echo_message " $plugin update success" ||
|
||||||
display_message " $plugin update fail"
|
echo_message " $plugin update fail"
|
||||||
else
|
else
|
||||||
# plugin wasn't cloned so far - clone it
|
# plugin wasn't cloned so far - clone it
|
||||||
display_message "Downloading $plugin"
|
echo_message "Downloading $plugin"
|
||||||
clone_plugin "$plugin" &&
|
clone_plugin "$plugin" &&
|
||||||
display_message " $plugin download success" ||
|
echo_message " $plugin download success" ||
|
||||||
display_message " $plugin download fail"
|
echo_message " $plugin download fail"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue