# "yes", "no" or "auto"
# If set to "auto", the $STY environment variable is used for auto detection.
-MUTTJUMP_USE_SCREEN="auto"
+MUTTJUMP_USE_SCREEN=${MUTTJUMP_USE_SCREEN:-auto}
# "yes" or "no"
# If this is set to "yes", muttjump will not open a new instance of
MUTTJUMP_SCREEN_SESSION=${MUTTJUMP_SCREEN_SESSION:-}
# function to create the screen window name from the full path of the mailbox
-if ! type -p MUTTJUMP_SCREEN_WINDOW_NAME_MANGLE >/dev/null ; then
+if ! type MUTTJUMP_SCREEN_WINDOW_NAME_MANGLE >/dev/null 2>&1 ; then
function MUTTJUMP_SCREEN_WINDOW_NAME_MANGLE () {
basename "$1"
}
}
function is_callable () {
- type -p $1 >/dev/null
+ type $1 >/dev/null 2>&1
}
# Check command-line arguments and STDIN