tmux/regress/conf/91378fd400b0444eb8cac471e30642b3.conf

31 lines
1.8 KiB
Plaintext
Raw Normal View History

###
if-shell " \
tmux -V \
| awk '{print $2}' \
| awk -F - '{print $1}' \
| awk '{ \
if ($1 ~ /^[[:digit:].]+$/) { \
exit !($1 >= 2.6) \
} else { \
exit !($1 == \"master\" || $1 == \"next\") \
} \
}'" \
"source-file ~/.tmux/v2rc" \
"source-file ~/.tmux/v1rc" \
;
###
set-option -qg status-left \
"[#[fg=yellow]#{session_name}#[default]] #[fg=colour060]#{host_short}#[default]:#[fg=colour151]#{b:pane_current_path} #[fg=colour099]#(git -C #{pane_current_path} symbolic-ref --short HEAD) #[fg=green]#(git -C #{pane_current_path} status --porcelain --untracked-files=no | cut -b 1-1 | sort | uniq | awk '/^[^[:space:]]/ {printf\(\"%%s\", $0\)}')#[fg=red]#(git -C #{pane_current_path} status --porcelain --untracked-files=no | cut -b 2-2 | sort | uniq | awk '/^[^[:space:]]/ {printf\(\"%%s\", $0\)}')#[fg=colour113]#(git -C #{pane_current_path} stash list 2>/dev/null | wc -l | tr -d '\n' | sed s,^0\$,,) #[default]"
set-option -qg status-right \
"#[default] ┊ #[fg=colour065]#(grep ^MemFree /proc/meminfo | awk '{print rshift\($2, 10\)}')#[fg=colour071]m #[default]┊ #[fg=colour101]#(echo \"\(`awk '{print \$1}' /proc/loadavg` / `grep ^processor /proc/cpuinfo | wc -l`\) \* 100\" | bc -ql | sed 's,\\..*,,' | awk '{printf\(\"%%2u\", $0\)}')#[fg=colour102]%% "
set-option -qwg window-status-current-format \
"#[fg=colour208]»#[fg=colour190]#{window_name}#[fg=colour037]·#{?window_flags,#[fg=colour058]#{window_flags}#[default], #[default]}"
set-option -qwg window-status-format \
"#[default]»#[fg=colour066]#{window_name}#[fg=colour037]·#{?window_flags,#[fg=colour058]#{window_flags}#[default], #[default]}"