]> arthur.barton.de Git - ax-zsh.git/commitdiff
axzshctl: Use internal ax_msg() on "dumb" terminals
authorAlexander Barton <alex@barton.de>
Mon, 20 Nov 2017 23:32:47 +0000 (00:32 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 20 Nov 2017 23:32:47 +0000 (00:32 +0100)
bin/axzshctl

index 405f955a0e93147114aaa26865da941769d209af..335c9938a302e8fe709dde0115187018774e243c 100755 (executable)
@@ -10,7 +10,7 @@ for dir ("$HOME/lib" "$HOME/.ax" /usr/local /opt/ax /usr); do
        ax_common="${dir}/lib/ax/ax-common.sh"
        [[ -r "$ax_common" ]] && source "$ax_common"
 done
-if [[ -z "$ax_common_sourced" ]]; then
+if [[ -z "$ax_common_sourced" || axzsh_is_dumb_terminal ]]; then
        function ax_msg {
                shift
                echo "$@"