]> arthur.barton.de Git - ax-zsh.git/commitdiff
10_terminal: Add "root" to list of remote commands
authorAlexander Barton <alex@barton.de>
Wed, 19 Aug 2015 08:38:24 +0000 (10:38 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 19 Aug 2015 08:38:24 +0000 (10:38 +0200)
Ugly hack, but I use this alias for ssh at work ...

core/10_terminal/10_terminal.zshrc

index fa27ed7f5919502d092e1015f08fca2b8b75a67c..0ef15c285ef5583dde24d5f5300fed2c7986e7b1 100644 (file)
@@ -34,7 +34,7 @@ function axzsh_terminal_title_preexec {
        local cmd="${1[(w)1]}"
        local remote=""
        case "$cmd" in
-         "mosh"*|"ssh"*|"telnet"*)
+         "mosh"*|"root"*|"ssh"*|"telnet"*)
                remote=1
                ;;
        esac