Skip to content

Commit b87f81a

Browse files
authored
Merge pull request #4 from jetpack-io/jl/tmux-plugin
Add Tmux Plugin
2 parents 26cdce3 + 96cabdb commit b87f81a

File tree

5 files changed

+60
-0
lines changed

5 files changed

+60
-0
lines changed

tmux/README.md

Whitespace-only changes.

tmux/plugin.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/jetpack-io/devbox/jl/plugin-schema/.schema/devbox-plugin.schema.json",
3+
"name": "tmux",
4+
"version": "0.0.1",
5+
"readme": "Plugin for tmux + tmuxPlugins. This adds an environment variable (DEVBOX_TMUX_PLUGINS) that makes it easy to add tmux plugins installed via Devbox to your tmux.conf",
6+
"env": {
7+
"DEVBOX_TMUX_PLUGINS": "{{ .DevboxProfileDefault }}/share/tmux-plugins/"
8+
}
9+
}

tmux/test/devbox.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"packages": [
3+
"tmux@latest",
4+
"tmuxPlugins.nord@latest"
5+
],
6+
"shell": {
7+
"init_hook": "tmux -f tmux.conf"
8+
},
9+
"include": ["path:./../plugin.json"]
10+
}

tmux/test/devbox.lock

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"lockfile_version": "1",
3+
"packages": {
4+
"tmux@latest": {
5+
"last_modified": "2022-06-07T02:20:12Z",
6+
"resolved": "github:NixOS/nixpkgs/d23be02c22add83d28588ac164dcbac733305b04#tmux",
7+
"source": "devbox-search",
8+
"version": "3.3",
9+
"systems": {
10+
"aarch64-darwin": {
11+
"store_path": "/nix/store/5cjql2qsrry8py5nxbc582v6ygplyq15-tmux-3.3"
12+
},
13+
"aarch64-linux": {
14+
"store_path": "/nix/store/d3w6mamrvhfklcqpdqzaxs2w0crf04i8-tmux-3.3"
15+
},
16+
"x86_64-darwin": {
17+
"store_path": "/nix/store/gsv76cwg8ss0inizmjnfwgwkyxzpwgzl-tmux-3.3"
18+
},
19+
"x86_64-linux": {
20+
"store_path": "/nix/store/qr266qpqrlfzm39ak93dx7h8iwnndmk2-tmux-3.3"
21+
}
22+
}
23+
},
24+
"tmuxPlugins.nord@latest": {
25+
"last_modified": "2023-11-17T14:14:56Z",
26+
"resolved": "github:NixOS/nixpkgs/a71323f68d4377d12c04a5410e214495ec598d4c#tmuxPlugins.nord",
27+
"source": "devbox-search",
28+
"version": "0.3.0",
29+
"systems": {
30+
"x86_64-linux": {
31+
"store_path": "/nix/store/0inbx1svy470yqyp83c7jclgasgdr8mi-tmuxplugin-nord-0.3.0"
32+
}
33+
}
34+
}
35+
}
36+
}

tmux/test/tmux.conf

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
unbind C-a
2+
set -g prefix C-a
3+
bind C-a send-prefix
4+
5+
run-shell "$DEVBOX_TMUX_PLUGINS/nord/nord.tmux"

0 commit comments

Comments
 (0)