mirror of
https://github.com/tmux-plugins/tmux-continuum.git
synced 2025-09-04 14:56:58 +00:00
Only add macOS .plist file if contents have changed
Saving this file triggers a notification saying that a background item was added. This happens on startup, every time. It is annoying. Fixes: https://github.com/tmux-plugins/tmux-continuum/issues/118
This commit is contained in:
@ -65,6 +65,8 @@ main() {
|
||||
local tmux_start_script_path="${CURRENT_DIR}/osx_${strategy}_start_tmux.sh"
|
||||
|
||||
local launchd_plist_file_content="$(template "$tmux_start_script_path" "$fullscreen_option_value")"
|
||||
if ! diff "$osx_auto_start_file_path" <(echo "$launchd_plist_file_content") &>/dev/null ; then
|
||||
echo "$launchd_plist_file_content" > "$osx_auto_start_file_path"
|
||||
fi
|
||||
}
|
||||
main
|
||||
|
Reference in New Issue
Block a user