Skip to content

Commit c5e2cf3

Browse files
committed
Add term-background from shell-term-background project
Note: I commented out some verbiage about settings. Will have to adjust things on the term-background side.
1 parent aa8b091 commit c5e2cf3

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

Makefile.am

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ pkgdata_DATA = \
2828
dbg-main.sh \
2929
dbg-opts.sh \
3030
dbg-trace.sh \
31-
getopts_long.sh \
32-
zterm-background.sh
31+
getopts_long.sh
3332

3433
# Set up the install target. Can't figure out how to use @PACKAGE@
3534
bin_SCRIPTS = zshdb

zterm-background.sh renamed to lib/zterm-background.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -369,20 +369,20 @@ elif [[ -n $COLORFGBG ]]; then
369369
# Note that this can be wrong if
370370
# COLORFGBG was set prior invoking a terminal
371371
is_dark_colorfgbg
372-
case $is_dark_bg in
373-
0)
374-
echo "Light background from COLORFGBG"
375-
;;
376-
1)
377-
echo "Dark background from COLORFGBG"
378-
;;
379-
-1 | *)
380-
echo "Can't decide from COLORFGBG"
381-
exit_if_not_sourced 1
382-
;;
383-
esac
372+
# case $is_dark_bg in
373+
# 0)
374+
# echo "Light background from COLORFGBG"
375+
# ;;
376+
# 1)
377+
# echo "Dark background from COLORFGBG"
378+
# ;;
379+
# -1 | *)
380+
# echo "Can't decide from COLORFGBG"
381+
# exit_if_not_sourced 1
382+
# ;;
383+
# esac
384384
else
385-
echo "Can't decide"
385+
# echo "Can't decide"
386386
exit_if_not_sourced 1
387387
fi
388388

0 commit comments

Comments
 (0)