aboutsummaryrefslogtreecommitdiff
path: root/.config/fish/functions/fish_title.fish
blob: f3f0a937a085de307aa60f3cafbbd72f88e63427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function fish_title
    echo $argv[1] (prompt_pwd)

    switch "$TERM"
    case 'screen*'

      if set -q SSH_CLIENT
        set maybehost (hostname):
      else
        set maybehost ""
      end

      echo -ne "\\ek"$maybehost(status current-command)"\\e\\" > /dev/tty
    end
end