Tmux: Difference between revisions

Add installation section and make sections follow MoS better.
DHCP (talk | contribs)
m style fixes
 
Line 4: Line 4:


==== Shell ====
==== Shell ====
To temporarily use tmux in a shell environment without modifying your system configuration, you can run:
To temporarily use tmux in a shell environment without modifying your system configuration, you can run:
{{Code|$ nix-shell -p tmux|lang=bash}}
<syntaxhighlight lang=console>
$ nix-shell -p tmux
</syntaxhighlight>
This makes the tmux available in your current shell. You can then launch tmux by typing <code>tmux</code>.
This makes the tmux available in your current shell. You can then launch tmux by typing <code>tmux</code>.


==== System setup ====
==== System setup ====
To install tmux system-wide, making it available to all users, add the following to your configuration:{{File|3=environment.systemPackages = [
To install tmux system-wide, making it available to all users, add the following to your configuration:{{File|3=environment.systemPackages = [
   pkgs.tmux
   pkgs.tmux
Line 23: Line 27:
   enable = true;
   enable = true;
   clock24 = true;
   clock24 = true;
   extraConfig = '' # used for less common options, intelligently combines if defined in multiple places.
   extraConfig = ''
    # used for less common options, intelligently combines if defined in multiple places.
     ...
     ...
   '';
   '';