fish/functions/__put_template_custom.fish 309 B raw
1
function __put_template_custom
2
  if test -n "$TMUX"
3
    printf '\033Ptmux;\033\033]%s%s\033\033\\\\\033\\' $argv
4
  else if string match -q -- 'screen*' $TERM
5
    printf '\033P\033]%s%s\007\033\\' $argv
6
  else if string match -q -- 'linux*' $TERM
7
      true
8
  else
9
    printf '\033]%s%s\033\\' $argv
10
  end
11
end