LoginSignup
7
8

More than 5 years have passed since last update.

ローカルIPアドレスをtmuxのステータスラインに表示する

Posted at

xip.ioを使うときにいちいちifconfig打つのが面倒くさくなってきたので表示してみました。

tmux_statusline

localip
#!/bin/sh

ifconfig en0 inet | sed -e '1d' -e 's/^.*inet //' -e 's/ netmask.*$//'
.tmux.conf
set-option -g status-right '[#(loadavg)][#(localip)][%Y/%m/%d %H:%M]'
set-option -g status-right-length 60
7
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
8