1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 07:20:40 +01:00

fix(tmux): use full offset parameter (#12249)

This commit is contained in:
张天泽
2024-03-02 16:12:34 +08:00
committed by GitHub
parent 8e088ded82
commit 2c62584b83

View File

@@ -49,7 +49,7 @@ fi
# ALIASES
function _build_tmux_alias {
eval "function $1 {
if [[ -z \$1 ]] || [[ \${1::1} == '-' ]]; then
if [[ -z \$1 ]] || [[ \${1:0:1} == '-' ]]; then
tmux $2 \"\$@\"
else
tmux $2 $3 \"\$@\"