diff --git a/.config/fish/functions/t.fish b/.config/fish/functions/t.fish index 6f3f549..f4bd016 100644 --- a/.config/fish/functions/t.fish +++ b/.config/fish/functions/t.fish @@ -8,7 +8,13 @@ end function init_session tmux new-session -d -s main -d -x (tput cols) -y (tput lines) - tmux split-window -v -l 10 journalctl -f + + if command -q journalctl + tmux split-window -v -l 10 journalctl -f + else + tmux split-window -v -l 10 tail -f /var/log/messages + end + tmux select-pane -t 0 tmux split-window -h -l 50 btop tmux select-pane -t 0