mirror of
1
0
Fork 0
This commit is contained in:
Di Wu 2017-03-22 06:49:23 +00:00 committed by GitHub
commit 450ddf5eab
2 changed files with 59 additions and 59 deletions

View File

@ -437,13 +437,13 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
# username=$(ps -t "$tty" -o user= -o pid= -o ppid= -o command= | awk '
# !/ssh/ { user[$2] = $1; ppid[$3] = 1 }
# END {
# for (i in user)
# if (!(i in ppid))
# {
# print user[i]
# exit
# for (i in user)
# if (!(i in ppid))
# {
# print user[i]
# exit
# }
# }
# }
# ')
# fi
# fi
@ -556,11 +556,11 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
# tmux_conf_theme_24b_colour=${tmux_conf_theme_24b_colour:-false}
# if _is_enabled "$tmux_conf_theme_24b_colour"; then
# case "$TERM" in
# screen-*|tmux-*)
# ;;
# *)
# tmux set-option -ga terminal-overrides ",$TERM:Tc"
# ;;
# screen-*|tmux-*)
# ;;
# *)
# tmux set-option -ga terminal-overrides ",$TERM:Tc"
# ;;
# esac
# fi
# }
@ -858,53 +858,53 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
# -v attr_="$tmux_conf_theme_status_right_attr" \
# -v mainsep="$tmux_conf_theme_right_separator_main" \
# -v subsep="$tmux_conf_theme_right_separator_sub" '
# function subsplit(s, l, i, a, r)
# {
# l = split(s, a, ",")
# for (i = 1; i <= l; ++i)
# {
# o = split(a[i], _, "(") - 1
# c = split(a[i], _, ")") - 1
# open += o - c
# o_ = split(a[i], _, "{") - 1
# c_ = split(a[i], _, "}") - 1
# open_ += o_ - c_
# o__ = split(a[i], _, "[") - 1
# c__ = split(a[i], _, "]") - 1
# open__ += o__ - c__
#
# if (i == l)
# r = sprintf("%s%s", r, a[i])
# else if (open || open_ || open__)
# r = sprintf("%s%s,", r, a[i])
# else
# r = sprintf("%s%s#[fg=%s,bg=%s,%s]%s", r, a[i], fg[j], bg[j], attr[j], subsep)
# }
#
# gsub(/#\[inherit\]/, sprintf("#[default]#[fg=%s,bg=%s,%s]", fg[j], bg[j], attr[j]), r)
# return r
# }
# BEGIN {
# FS = "|"
# l1 = split(fg_, fg, ",")
# l2 = split(bg_, bg, ",")
# l3 = split(attr_, attr, ",")
# l = l1 < l2 ? (l1 < l3 ? l1 : l3) : (l2 < l3 ? l2 : l3)
# }
# {
# for (i = j = 1; i <= NF; ++i)
# {
# if (open_ || open || open__)
# printf "|%s", subsplit($i)
# else
# printf "#[fg=%s,bg=%s,none]%s#[fg=%s,bg=%s,%s]%s", bg[j], (i == 1) ? "default" : bg[j_], mainsep, fg[j], bg[j], attr[j], subsplit($i)
#
# if (!open && !open_ && !open__)
# function subsplit(s, l, i, a, r)
# {
# l = split(s, a, ",")
# for (i = 1; i <= l; ++i)
# {
# j_ = j
# j = j % l + 1
# }
# }
# o = split(a[i], _, "(") - 1
# c = split(a[i], _, ")") - 1
# open += o - c
# o_ = split(a[i], _, "{") - 1
# c_ = split(a[i], _, "}") - 1
# open_ += o_ - c_
# o__ = split(a[i], _, "[") - 1
# c__ = split(a[i], _, "]") - 1
# open__ += o__ - c__
#
# if (i == l)
# r = sprintf("%s%s", r, a[i])
# else if (open || open_ || open__)
# r = sprintf("%s%s,", r, a[i])
# else
# r = sprintf("%s%s#[fg=%s,bg=%s,%s]%s", r, a[i], fg[j], bg[j], attr[j], subsep)
# }
#
# gsub(/#\[inherit\]/, sprintf("#[default]#[fg=%s,bg=%s,%s]", fg[j], bg[j], attr[j]), r)
# return r
# }
# BEGIN {
# FS = "|"
# l1 = split(fg_, fg, ",")
# l2 = split(bg_, bg, ",")
# l3 = split(attr_, attr, ",")
# l = l1 < l2 ? (l1 < l3 ? l1 : l3) : (l2 < l3 ? l2 : l3)
# }
# {
# for (i = j = 1; i <= NF; ++i)
# {
# if (open_ || open || open__)
# printf "|%s", subsplit($i)
# else
# printf "#[fg=%s,bg=%s,none]%s#[fg=%s,bg=%s,%s]%s", bg[j], (i == 1) ? "default" : bg[j_], mainsep, fg[j], bg[j], attr[j], subsplit($i)
#
# if (!open && !open_ && !open__)
# {
# j_ = j
# j = j % l + 1
# }
# }
# }' << EOF
# $tmux_conf_theme_status_right
# EOF

View File

@ -90,7 +90,7 @@ tmux_conf_theme_status_attr='none'
# window status style
# - built-in variables are:
# - #{circled_window_index}
# - #{circled_window_index}
tmux_conf_theme_window_status_fg='#8a8a8a' # light gray
tmux_conf_theme_window_status_bg='#080808' # dark gray
tmux_conf_theme_window_status_attr='none'
@ -100,7 +100,7 @@ tmux_conf_theme_window_status_format='#I #W'
# window current status style
# - built-in variables are:
# - #{circled_window_index}
# - #{circled_window_index}
tmux_conf_theme_window_status_current_fg='#000000' # black
tmux_conf_theme_window_status_current_bg='#00afff' # light blue
tmux_conf_theme_window_status_current_attr='bold'