<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Tmux on Raveen Kumar</title>
    <link>https://raveenkumar.com/tags/tmux/</link>
    <description>Recent content in Tmux on Raveen Kumar</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Raveen Kumar</copyright>
    <lastBuildDate>Sat, 18 Feb 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://raveenkumar.com/tags/tmux/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>TMUX</title>
      <link>https://raveenkumar.com/library/programming/tmux/</link>
      <pubDate>Sat, 18 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/library/programming/tmux/</guid>
      <description>&lt;p&gt;The greatest samurai to ever exist?&lt;/p&gt;&#xA;&lt;h2 id=&#34;tmux-plugins&#34;&gt;TMUX plugins&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/tmux-plugins/tpm&#34;&gt;GitHub - tmux-plugins/tpm: Tmux Plugin Manager&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/tmux-plugins/tmux-urlview&#34;&gt;GitHub - tmux-plugins/tmux-urlview: Quickly open any url on your terminal window!&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/tmux-plugins/tmux-resurrect&#34;&gt;GitHub - tmux-plugins/tmux-resurrect: Persists tmux environment across system restarts.&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;to-move-a-pane-from-another-window-to-current-window&#34;&gt;To move a pane from another window to current window&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;join-pane -s target-window:target-pane&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;to-use-256-colours-in-tmux&#34;&gt;To use 256 colours in Tmux&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://sanctum.geek.nz/arabesque/256-colour-terminals/#:~:text=To%20use%20256%20colours%20in%20Tmux%2C%20you%20should,colour231%20in%20your%20status%20lines%20and%20other%20configurations&#34;&gt;256 colours in TMUX&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;You should set the default terminal in &lt;code&gt;.tmux.conf&lt;/code&gt; to be&#xA;screen-256color,&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;set -g default-terminal &amp;quot;screen-256color&amp;quot;&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to customize tmux status bar with shell scripts</title>
      <link>https://raveenkumar.com/posts/2022-10-06-customize-tmux-status-bar-with-shell-scripts/</link>
      <pubDate>Thu, 06 Oct 2022 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2022-10-06-customize-tmux-status-bar-with-shell-scripts/</guid>
      <description>&lt;p&gt;TMUX status bar can be customized to run shell scripts.&lt;/p&gt;&#xA;&lt;p&gt;In the &lt;code&gt;.tmux.conf&lt;/code&gt; file, in the status left or right command execute the shell script using the following syntax,&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;set -g status-right &#39;| #(shell_script.bash) |&#39;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will print the output of that shell script in the status bar. Useful if you want to check the size the home directory.&lt;/p&gt;&#xA;&lt;p&gt;Contents of &lt;code&gt;shell_script.bash&lt;/code&gt; example&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#!/bin/bash&#xA;&#xA;df -h $HOME | awk &#39;{print $5}&#39; | tail -n 1&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Share TMUX session</title>
      <link>https://raveenkumar.com/posts/2022-02-08-sharing-tmux-sesslions/</link>
      <pubDate>Tue, 08 Feb 2022 00:00:00 +0000</pubDate>
      <guid>https://raveenkumar.com/posts/2022-02-08-sharing-tmux-sesslions/</guid>
      <description>&lt;h2 id=&#34;sharing-tmux-sessions&#34;&gt;Sharing tmux sessions&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://planspace.org/20200902-share_a_tmux_session/&#34;&gt;Share a tmux session (planspace.org)&lt;/a&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# originating:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;tmux -S /tmp/party_socket new -s party_session&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;chgrp shared_group /tmp/party_socket&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# joining:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;tmux -S /tmp/party_socket attach -t party_session&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This is a simple way to check who&amp;rsquo;s connected to the session:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ps -eo user:16,cmd | grep party_session&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
