LoginSignup
0
0

More than 5 years have passed since last update.

Fish Shell で、TmuxのステータスバーにPATHが通ってない

Posted at

tmuxのステータスバーに、自作コマンドでバッテリー残量などを表示させている。

Screenshot_2017-03-03_10-36-52.png

設定はこれ。

~/.tmux.conf
set -g status-right \
"#[fg=white] #(imstatus) #(battery) #[fg=white][%Y-%m-%d(%a) %H:%M]"
~/bin/battery
#!/bin/bash

if acpi -b | grep -q Discharging; then
  echo -n \#\[fg=yellow,bold\]
else
  echo -n \#\[fg=green,bold\]
fi

echo `acpi -b | grep -oE \[0-9\]+%`

ところが、下記の操作をしたところ正しく表示されなくなってしまった。

  • Arch Linuxをフルアップデート
  • tmux 2.3 にアップデート
  • Fish shell に乗り換え

フルパスで書いたら表示されたので、 PATH の設定を追加したところ治った。

~/.tmux.conf
setenv set-environment PATH $HOME/bin:$PATH

参考

0
0
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
0
0