afer the _apply_bindings() rewrite, perl has become mandatory
This commit is contained in:
parent
1231155600
commit
6815beef4f
1 changed files with 3 additions and 17 deletions
20
.tmux.conf
20
.tmux.conf
|
@ -206,23 +206,9 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim
|
||||||
# fi
|
# fi
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
# if command -v perl > /dev/null 2>&1; then
|
# _decode_unicode_escapes() {
|
||||||
# _decode_unicode_escapes() {
|
# printf '%s' "$*" | perl -CS -pe 's/(\\u([0-9A-Fa-f]{1,4})|\\U([0-9A-Fa-f]{1,8}))/chr(hex($2.$3))/eg' 2>/dev/null
|
||||||
# printf '%s' "$*" | perl -CS -pe 's/(\\u([0-9A-Fa-f]{1,4})|\\U([0-9A-Fa-f]{1,8}))/chr(hex($2.$3))/eg' 2>/dev/null
|
# }
|
||||||
# }
|
|
||||||
# elif bash --norc --noprofile -c '[[ ! $BASH_VERSION < 4.2. ]]' > /dev/null 2>&1; then
|
|
||||||
# _decode_unicode_escapes() {
|
|
||||||
# bash --norc --noprofile -c "printf '%b' '$*'"
|
|
||||||
# }
|
|
||||||
# elif command -v python > /dev/null 2>&1; then
|
|
||||||
# _decode_unicode_escapes() {
|
|
||||||
# python -c "import re; import sys; sys.stdout.write(re.sub(r'\\\U([0-9A-Fa-f]{1,8})', lambda match: r'\U%s' % match.group(1).zfill(8), r'$*').encode().decode('unicode-escape', 'ignore'))"
|
|
||||||
# }
|
|
||||||
# else
|
|
||||||
# _decode_unicode_escapes() {
|
|
||||||
# printf '%b' "$*"
|
|
||||||
# }
|
|
||||||
# fi
|
|
||||||
#
|
#
|
||||||
# _maximize_pane() {
|
# _maximize_pane() {
|
||||||
# current_session=${1:-$(tmux display -p '#{session_name}')}
|
# current_session=${1:-$(tmux display -p '#{session_name}')}
|
||||||
|
|
Loading…
Reference in a new issue