comparison .shell.d/99.mcfly.zsh @ 492:26caf7bf8805

mcfly: fix to correctly no-op when mcfly is absent
author Augie Fackler <raf@durin42.com>
date Wed, 01 Jul 2020 13:36:33 -0400
parents 4b2472372fad
children 55aa151f3567
comparison
equal deleted inserted replaced
491:4b2472372fad 492:26caf7bf8805
3 # Ensure stdin is a tty 3 # Ensure stdin is a tty
4 [[ -t 0 ]] || return 4 [[ -t 0 ]] || return
5 5
6 # Make sure mcfly is installed 6 # Make sure mcfly is installed
7 if ! which mcfly > /dev/null ; then 7 if ! which mcfly > /dev/null ; then
8 echo nope 8 return 0
9 fi 9 fi
10 10
11 # Avoid loading this file more than once 11 # Avoid loading this file more than once
12 if [[ "$__MCFLY_LOADED" == "loaded" ]]; then 12 if [[ "$__MCFLY_LOADED" == "loaded" ]]; then
13 return 0 13 return 0