tab to spaces
This commit is contained in:
parent
95f88dee38
commit
4b624195d3
2 changed files with 45 additions and 45 deletions
86
.tmux.conf
86
.tmux.conf
|
@ -437,10 +437,10 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
||||||
# username=$(ps -t "$tty" -o user= -o pid= -o ppid= -o command= | awk '
|
# username=$(ps -t "$tty" -o user= -o pid= -o ppid= -o command= | awk '
|
||||||
# !/ssh/ { user[$2] = $1; ppid[$3] = 1 }
|
# !/ssh/ { user[$2] = $1; ppid[$3] = 1 }
|
||||||
# END {
|
# END {
|
||||||
# for (i in user)
|
# for (i in user)
|
||||||
# if (!(i in ppid))
|
# if (!(i in ppid))
|
||||||
# {
|
# {
|
||||||
# print user[i]
|
# print user[i]
|
||||||
# exit
|
# exit
|
||||||
# }
|
# }
|
||||||
# }
|
# }
|
||||||
|
@ -556,11 +556,11 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
||||||
# tmux_conf_theme_24b_colour=${tmux_conf_theme_24b_colour:-false}
|
# tmux_conf_theme_24b_colour=${tmux_conf_theme_24b_colour:-false}
|
||||||
# if _is_enabled "$tmux_conf_theme_24b_colour"; then
|
# if _is_enabled "$tmux_conf_theme_24b_colour"; then
|
||||||
# case "$TERM" in
|
# case "$TERM" in
|
||||||
# screen-*|tmux-*)
|
# screen-*|tmux-*)
|
||||||
# ;;
|
# ;;
|
||||||
# *)
|
# *)
|
||||||
# tmux set-option -ga terminal-overrides ",$TERM:Tc"
|
# tmux set-option -ga terminal-overrides ",$TERM:Tc"
|
||||||
# ;;
|
# ;;
|
||||||
# esac
|
# esac
|
||||||
# fi
|
# fi
|
||||||
# }
|
# }
|
||||||
|
@ -858,53 +858,53 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
||||||
# -v attr_="$tmux_conf_theme_status_right_attr" \
|
# -v attr_="$tmux_conf_theme_status_right_attr" \
|
||||||
# -v mainsep="$tmux_conf_theme_right_separator_main" \
|
# -v mainsep="$tmux_conf_theme_right_separator_main" \
|
||||||
# -v subsep="$tmux_conf_theme_right_separator_sub" '
|
# -v subsep="$tmux_conf_theme_right_separator_sub" '
|
||||||
# function subsplit(s, l, i, a, r)
|
# function subsplit(s, l, i, a, r)
|
||||||
# {
|
# {
|
||||||
# l = split(s, a, ",")
|
# l = split(s, a, ",")
|
||||||
# for (i = 1; i <= l; ++i)
|
# for (i = 1; i <= l; ++i)
|
||||||
# {
|
# {
|
||||||
# o = split(a[i], _, "(") - 1
|
# o = split(a[i], _, "(") - 1
|
||||||
# c = split(a[i], _, ")") - 1
|
# c = split(a[i], _, ")") - 1
|
||||||
# open += o - c
|
# open += o - c
|
||||||
# o_ = split(a[i], _, "{") - 1
|
# o_ = split(a[i], _, "{") - 1
|
||||||
# c_ = split(a[i], _, "}") - 1
|
# c_ = split(a[i], _, "}") - 1
|
||||||
# open_ += o_ - c_
|
# open_ += o_ - c_
|
||||||
# o__ = split(a[i], _, "[") - 1
|
# o__ = split(a[i], _, "[") - 1
|
||||||
# c__ = split(a[i], _, "]") - 1
|
# c__ = split(a[i], _, "]") - 1
|
||||||
# open__ += o__ - c__
|
# open__ += o__ - c__
|
||||||
#
|
#
|
||||||
# if (i == l)
|
# if (i == l)
|
||||||
# r = sprintf("%s%s", r, a[i])
|
# r = sprintf("%s%s", r, a[i])
|
||||||
# else if (open || open_ || open__)
|
# else if (open || open_ || open__)
|
||||||
# r = sprintf("%s%s,", r, a[i])
|
# r = sprintf("%s%s,", r, a[i])
|
||||||
# else
|
# else
|
||||||
# r = sprintf("%s%s#[fg=%s,bg=%s,%s]%s", r, a[i], fg[j], bg[j], attr[j], subsep)
|
# 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)
|
# gsub(/#\[inherit\]/, sprintf("#[default]#[fg=%s,bg=%s,%s]", fg[j], bg[j], attr[j]), r)
|
||||||
# return r
|
# return r
|
||||||
# }
|
# }
|
||||||
# BEGIN {
|
# BEGIN {
|
||||||
# FS = "|"
|
# FS = "|"
|
||||||
# l1 = split(fg_, fg, ",")
|
# l1 = split(fg_, fg, ",")
|
||||||
# l2 = split(bg_, bg, ",")
|
# l2 = split(bg_, bg, ",")
|
||||||
# l3 = split(attr_, attr, ",")
|
# l3 = split(attr_, attr, ",")
|
||||||
# l = l1 < l2 ? (l1 < l3 ? l1 : l3) : (l2 < l3 ? l2 : l3)
|
# l = l1 < l2 ? (l1 < l3 ? l1 : l3) : (l2 < l3 ? l2 : l3)
|
||||||
# }
|
# }
|
||||||
# {
|
# {
|
||||||
# for (i = j = 1; i <= NF; ++i)
|
# for (i = j = 1; i <= NF; ++i)
|
||||||
# {
|
# {
|
||||||
# if (open_ || open || open__)
|
# if (open_ || open || open__)
|
||||||
# printf "|%s", subsplit($i)
|
# printf "|%s", subsplit($i)
|
||||||
# else
|
# 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)
|
# 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__)
|
# if (!open && !open_ && !open__)
|
||||||
# {
|
# {
|
||||||
# j_ = j
|
# j_ = j
|
||||||
# j = j % l + 1
|
# j = j % l + 1
|
||||||
# }
|
# }
|
||||||
# }
|
# }
|
||||||
# }' << EOF
|
# }' << EOF
|
||||||
# $tmux_conf_theme_status_right
|
# $tmux_conf_theme_status_right
|
||||||
# EOF
|
# EOF
|
||||||
|
|
|
@ -90,7 +90,7 @@ tmux_conf_theme_status_attr='none'
|
||||||
|
|
||||||
# window status style
|
# window status style
|
||||||
# - built-in variables are:
|
# - built-in variables are:
|
||||||
# - #{circled_window_index}
|
# - #{circled_window_index}
|
||||||
tmux_conf_theme_window_status_fg='#8a8a8a' # light gray
|
tmux_conf_theme_window_status_fg='#8a8a8a' # light gray
|
||||||
tmux_conf_theme_window_status_bg='#080808' # dark gray
|
tmux_conf_theme_window_status_bg='#080808' # dark gray
|
||||||
tmux_conf_theme_window_status_attr='none'
|
tmux_conf_theme_window_status_attr='none'
|
||||||
|
@ -100,7 +100,7 @@ tmux_conf_theme_window_status_format='#I #W'
|
||||||
|
|
||||||
# window current status style
|
# window current status style
|
||||||
# - built-in variables are:
|
# - 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_fg='#000000' # black
|
||||||
tmux_conf_theme_window_status_current_bg='#00afff' # light blue
|
tmux_conf_theme_window_status_current_bg='#00afff' # light blue
|
||||||
tmux_conf_theme_window_status_current_attr='bold'
|
tmux_conf_theme_window_status_current_attr='bold'
|
||||||
|
|
Loading…
Reference in a new issue