]> arthur.barton.de Git - ax-zsh.git/commitdiff
10_terminal: Reorder functions
authorAlexander Barton <alex@barton.de>
Sun, 21 Feb 2016 22:21:49 +0000 (23:21 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 21 Feb 2016 22:21:49 +0000 (23:21 +0100)
core/10_terminal/10_terminal.zshrc

index 614bf3dca86877e06c701bcdae34191edfc2e904..874ef8060fc5587e62f983c339062c1c9a668f44 100644 (file)
@@ -14,6 +14,14 @@ function axzsh_is_utf_terminal {
 }
 alias isutfenv=axzsh_is_utf_terminal
 
+# Test for "modern" terminal
+function axzsh_is_modern_terminal {
+       [[ "$TERM" = screen* ]] && return 0
+       [[ "$TERM" = tmux* ]] && return 0
+       [[ "$TERM" = xterm* ]] && return 0
+       return 1
+}
+
 # Set terminal title
 
 # Set terminal "hardstatus" and "icon title"
@@ -27,14 +35,6 @@ function axzsh_terminal_set_window_title {
        printf '\e]2;%s\a' "$1"
 }
 
-# Test for "modern" terminal
-function axzsh_is_modern_terminal {
-       [[ "$TERM" = screen* ]] && return 0
-       [[ "$TERM" = tmux* ]] && return 0
-       [[ "$TERM" = xterm* ]] && return 0
-       return 1
-}
-
 # Update terminal titles befor echoing the shell prompt
 function axzsh_terminal_title_precmd {
        axzsh_is_modern_terminal || return