Remove unused function
This commit is contained in:
parent
0f0d9adb06
commit
44f9dd2719
1 changed files with 0 additions and 25 deletions
|
@ -69,31 +69,6 @@ end_message() {
|
||||||
echo_message "Done, press ENTER to continue."
|
echo_message "Done, press ENTER to continue."
|
||||||
}
|
}
|
||||||
|
|
||||||
# Ensures a message is displayed for 5 seconds in tmux prompt.
|
|
||||||
# Does not override the 'display-time' tmux option.
|
|
||||||
display_message() {
|
|
||||||
local message="$1"
|
|
||||||
|
|
||||||
# display_duration defaults to 5 seconds, if not passed as an argument
|
|
||||||
if [ "$#" -eq 2 ]; then
|
|
||||||
local display_duration="$2"
|
|
||||||
else
|
|
||||||
local display_duration="5000"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# saves user-set 'display-time' option
|
|
||||||
local saved_display_time="$(get_tmux_option "display-time" "750")"
|
|
||||||
|
|
||||||
# sets message display time to 5 seconds
|
|
||||||
tmux set-option -gq display-time "$display_duration"
|
|
||||||
|
|
||||||
# displays message
|
|
||||||
tmux display-message "$message"
|
|
||||||
|
|
||||||
# restores original 'display-time' value
|
|
||||||
tmux set-option -gq display-time "$saved_display_time"
|
|
||||||
}
|
|
||||||
|
|
||||||
ensure_tpm_path_exists() {
|
ensure_tpm_path_exists() {
|
||||||
mkdir -p "$SHARED_TPM_PATH"
|
mkdir -p "$SHARED_TPM_PATH"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue