Commit Graph

119 Commits (master)

Author SHA1 Message Date
Bruno Sutic 0698e8f4b1
Merge pull request #132 from rmartine-ias/osx-added-plist
Only add macOS .plist file if contents have changed
2024-01-20 13:37:57 +01:00
Riley Martine e8be48e5e9
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
2023-12-08 13:26:39 -07:00
Bruno Sutic 3e4bc35da4
Merge pull request #112 from yevgenykuz/iterm-syntax-errors
Fix syntax errors in auto-start osx iterm script
2022-07-19 13:08:24 +02:00
Yevgeny Kuznetsov fa60087d41
Fix syntax errors in auto-start osx iterm script
Fix AppleScript syntax errors in iterm automatic start osx script:

* 102:110: syntax error: Expected end of line but found identifier. (-2741)
* 60:64: syntax error: Expected end of line but found identifier. (-2741)
* 155:159: syntax error: Expected end of line but found identifier. (-2741)
2022-07-19 04:28:40 -04:00
Bruno Sutic 26afaffb2c
Merge pull request #109 from mattkatz/fix-systemd-control-group
For systemd, migrate from killmode=none to control-group
2022-06-11 13:21:57 +02:00
Matt Katz 514093f429
Update systemd_enable.sh 2022-06-10 12:17:00 -04:00
Bruno Sutic bb4832c31a
Merge pull request #108 from dotysan/master
fix b0rk link to systemd details
2022-06-10 08:25:04 +02:00
Curtis Doty 824eefb18b
fix b0rk link to systemd details 2022-06-09 19:37:02 +00:00
Bruno Sutic 9329afa932
Add Sven Vowe @nuclearglow as a systemd maintainer 2022-06-03 10:57:42 +02:00
Bruno Sutic 0ad6174ec5
Style fixes 2022-05-30 08:45:23 +02:00
Bruno Sutic 64a059996f
Merge pull request #106 from UbiquitousPhoton/fix_systemd_install
Fix systemd unit install on clean system
2022-05-30 08:26:36 +02:00
Paul Elliott 3d10915bfa Fix systemd unit install on clean system
If the .config/systemd/user directory did not exist, it would not get
created, as the mkdir command was inside the function
systemd_unit_file() which is piped into the target file. The shell
determined that file could not be created first (as the directory did
not exist), so never called the function.

Signed-off-by: Paul Elliott <paul@niburu.org>
2022-05-18 16:57:29 +01:00
Bruno Sutic fc2f31d795
Merge pull request #103 from mattkatz/fix-tmux-systemd-path
switch from which to command -v for tmux invoke
2022-01-25 16:31:49 +01:00
mattkatz 280f9bdffb switch from which to command -v for tmux invoke
command -v is posix and on all systems, which isn't

Of course, this is probably a quibble as anything that has systemd on it
probably has which.
2022-01-20 18:28:17 -05:00
Bruno Sutic 912149820b
Merge pull request #27 from knopki/patch-1
systemd_enable.sh: is_enabled -> is-enabled
2021-12-02 09:01:08 +01:00
Bruno Sutic c02b4ec711
Merge pull request #53 from andydna/andydna
don't overwrite systemd unit file if it already exists
2021-12-02 09:00:17 +01:00
Bruno Sutic f5e554a31d
Merge pull request #100 from primeapple/master
Accept different tmux installation path in systemd unit file
2021-12-01 21:33:36 +01:00
Toni Müller 669c3cfcc3
different tmux installation paths for systemd 2021-12-01 15:16:27 +01:00
Bruno Sutic 44e6be6222
Merge pull request #98 from studgeek/patch-1
Update doc that status line needs to be on
2021-09-11 11:10:12 +02:00
David Rees 8169204079
Update doc that status line needs to be on 2021-09-10 12:06:23 -07:00
Bruno Sutic 6e58336c28
Merge pull request #93 from ahaasler/add-restore-max-delay-option
Add option to set restore max delay
2021-06-08 10:37:40 +02:00
Adrian Haasler García aaf3515048
Add option to set restore max delay
This enables the user to set a custom max delay time for the auto
restore process to trigger. When the .tmux.conf loads multiple or slow
plugins 10 seconds is not enough.
2021-06-05 14:49:32 +02:00
Bruno Sutic c7f12ce825
Merge pull request #91 from kqwyf/master
Enable user to set the path of tmux-resurrect's save.sh and remove the hard-coded path
2021-04-28 11:29:05 +02:00
kqwyf 4c84c4062f enable user to set the path of tmux-resurrect's save.sh.
replace the hard-coded path by a more elegant one.
2021-04-28 13:58:44 +08:00
Bruno Sutic 3845e73f94
Merge pull request #89 from alfredbez/patch-1
Link to tmux-resurrect for restoring previously saved environment instructions
2021-03-13 11:50:07 +01:00
Alfred Bez 8a1ec81012
Link to tmux-resurrect for restoring previously saved environment instructions
see https://github.com/tmux-plugins/tmux-resurrect/pull/325
2021-03-12 13:15:04 +01:00
Bruno Sutic 844e808293
Merge pull request #88 from dsedivec/patch-1
Delete stray lines at end of script
2021-03-10 15:58:52 +01:00
Dale Sedivec f32dd4e093
Delete stray lines at end of script
I'm not using this script, and I haven't looked very far into it, but based on the other scripts in this directory, I am guessing this line (which, I think, references a function that doesn't exist) was left in by accident.  This commit removes it.
2021-03-10 03:36:32 -06:00
Bruno Sutic 113826b161
Merge pull request #87 from evandroforks/master
Fixed scripts/handle_tmux_automatic_start/README.md symlink
2020-12-19 14:45:22 +01:00
Bruno Sutic 5a75f0716a
Merge pull request #85 from chrisminton/alacritty-start-option
feat: add alacritty to the list of auto start terminals
2020-12-19 14:34:30 +01:00
evandrocoan 7d9d43b8a5 Fixed scripts/handle_tmux_automatic_start/README.md symlink
GitHub Pages failed to build your site.
https://github.com/evandrocoan/dotfiles/runs/1504131690

The symbolic link
/scripts/tmux-continuum/scripts/handle_tmux_automatic_start/README.md
targets a file which does not exist within your site's repository.
2020-12-05 15:05:38 -03:00
Chris Minton 154e386bbe
feat: add alacritty to the list of auto start terminals 2020-12-01 00:07:20 +00:00
Bruno Sutic 26eb5ffce0
Merge pull request #82 from nivnadler/readme_known_issues
README: Added known issues section
2020-10-17 09:49:10 +02:00
Niv Nadler 6a5c81dcf2 README: Added known issues section
A TPM plugin's order bug was found and described in Issue #81.
At this point, there is no available bug-fix. Thus, a new known
issues section was added to the README file.

Fixes: #81 ("[Docs] Autosave feature depends on TPM plugins order")
Signed-off-by: Niv Nadler <nivnadler@gmail.com>
2020-10-16 22:17:41 +03:00
Bruno Sutic 9aac5ec934
Merge pull request #80 from revolter/patch-1
Fix incorrect config file name
2020-09-02 09:44:01 +02:00
Iulian Onofrei b03d1c0c84
Fix incorrect config file name 2020-09-01 19:54:02 +03:00
Bruno Sutic 432d243e03
Merge pull request #78 from revolter/patch-1
Fix typos in README
2020-08-13 11:27:45 +02:00
Iulian Onofrei 8ad59245dc
Fix typos in README 2020-08-13 11:27:16 +03:00
Bruno Sutic 4f2bc93c58
Merge pull request #77 from lexjacobs/patch-1
Update faq.md to reflect that `tmux-resurrect` already prunes the backup directory.
2020-07-15 08:36:41 +02:00
Alex Jacobs 52e9b44965 Update faq page about `remove_old_backups()`
This command has been tested on osx mojave running tmux on iTerm2 with zsh.
The delete command was taken from: https://stackoverflow.com/a/34862475/3044358
2020-07-14 11:54:49 -07:00
Bruno Sutic b84edbcb11
Rename variable and function names 2020-07-08 09:10:46 +02:00
Dillon Lees cf5715d5fa
chore: use tabs instead of spaces for formatting 2020-07-08 09:02:00 +02:00
Dillon Lees 9f0cf6581b feat: add kitty to the list of supported terminals for automatic start 2020-07-06 02:00:50 -04:00
v9v 1531b3770a
Fix for multiple users on the same machine
The issue and fix are described in https://github.com/tmux-plugins/tmux-continuum/issues/16 .

Without this change, tmux-continuum works only for one tmux server on the machine. In a multi-user environment (e.g. a shared server), when multiple users are running their own tmux servers, this means that tmux-continuum works only for one of the users.

This change enables tmux-continuum for one tmux server per user instead of one tmux server per machine.
2020-02-29 01:37:58 +01:00
Bruno Sutic 7f99beee1d
Update changelog 2019-07-13 17:07:06 +02:00
Bruno Sutic 9f3cbc7e12
Merge pull request #61 from v9v/fix-autosave-race
Fix race condition in autosave
2019-07-13 17:04:13 +02:00
v9v ff63f86678
continuum_save.sh: Improvements to locking code
* moved the locking to a separate function "acquire_lock"
* changed $[ ] to $(( )), for consistency with the rest of the file
* taking the lock only after checking all other preconditions (they are non-mutating and thread-safe)
2019-07-13 14:16:42 +02:00
v9v 3917404668
Fix race condition in saving lock
Two consecutive calls to "date +%s" can return different values. Call "date" only once and reuse the result.
2019-07-09 10:46:56 +02:00
v9v 800488ca6f
Replace flock with mkdir
flock is not supported on MacOS.

`mkdir` locks have a drawback: they are not cleaned up automatically. If the lock owner crashed before cleaning up the lock, the directory will stay in the filesystem and the lock will be never acquired by someone else. To avoid that, we create temporary locks (the lockdir name changes every 100 seconds). We grab two lock (N and N+1) to avoid the case where process A grabs lock N and process B grabs lock N+1 and both enter the critical section.
2019-07-08 15:58:42 +02:00
v9v 10e612d72c
Handle missing flock
If flock is not installed, fall back to the thread-unsafe version.
2019-07-05 19:33:12 +02:00