-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmenus.tmux
executable file
·38 lines (35 loc) · 1.26 KB
/
menus.tmux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
# shellcheck disable=SC2154
#
# Copyright (c) 2022-2025: [email protected]
# License: MIT
#
# Part of https://github.com/jaclu/tmux-menus
#
# tmux env is read each time this plugin init script is run, so changes
# in tmux version or your tmux conf file will be detected and trigger
# a cache replacement.
#
# tpm will call this during a tmux source-file call, so this cache can
# be trusted by the menu items to contain current tmux env variables.
#
# One thing to be aware of - If multiple tmux instances of the same version
# use the same folder for this plugin, this cache approach might not work
# as intended, since the tmux env is just read once then this cache is used.
#
# If those tmux instances do not have identical tmux-menus configuration,
# thing will not work as intended.
#
# Therefore each instance using tmux-menus should use a separate folder
# for the plugin, not using soft-links to the same folder!
#
#===============================================================
#
# Main
#
#===============================================================
D_TM_BASE_PATH="$(dirname -- "$(realpath "$0")")"
#
# Run the plugin setup in the background to not slow down tpm on startup
#
"$D_TM_BASE_PATH"/scripts/utils/plugin_init.sh &