Zellij: Difference between revisions
zellij: init |
m style fixes and improvements (using C as a syntax highlighting language for KDL code is a hack, but IMO looks more readable than no colors) |
||
| Line 5: | Line 5: | ||
==== Shell ==== | ==== Shell ==== | ||
To temporarily use zellij in a shell environment without modifying your system configuration, you can run: | To temporarily use zellij in a shell environment without modifying your system configuration, you can run: | ||
<syntaxhighlight lang=console> | |||
$ nix-shell -p zellij | |||
</syntaxhighlight> | |||
This makes the zellij available in your current shell. You can then launch zellij by typing <code>zellij</code>. | This makes the zellij available in your current shell. You can then launch zellij by typing <code>zellij</code>. | ||
| Line 77: | Line 79: | ||
This will generate <code>~/.config/zellij/config.kdl</code>, with something like this: | This will generate <code>~/.config/zellij/config.kdl</code>, with something like this: | ||
{{file|~/.config/zellij/config.kdl| | {{file|~/.config/zellij/config.kdl|c| | ||
<nowiki> | <nowiki> | ||
load_plugins { | load_plugins { | ||
| Line 109: | Line 111: | ||
To add a new plugin, you can just use [https://github.com/nix-community/nix-init nix-init] like this: | To add a new plugin, you can just use [https://github.com/nix-community/nix-init nix-init] like this: | ||
<syntaxhighlight lang=console> | |||
< | |||
$ nix-init pkgs/by-name/ze/zellij/plugins/rust/my-plugin-name.nix | $ nix-init pkgs/by-name/ze/zellij/plugins/rust/my-plugin-name.nix | ||
Enter url | Enter url | ||
| Line 122: | Line 123: | ||
How should this package be built? | How should this package be built? | ||
❯ buildRustPackage - cargoHash | ❯ buildRustPackage - cargoHash | ||
</ | </syntaxhighlight> | ||
If the repository name starts with <code>zellij</code>, you should omit it in the actual package name. <code>zellijPlugins.autolock</code> looks better than <code>zellijPlugins.zellij-autolock</code>. | If the repository name starts with <code>zellij</code>, you should omit it in the actual package name. <code>zellijPlugins.autolock</code> looks better than <code>zellijPlugins.zellij-autolock</code>. | ||