mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
usr/bin/byobu-janitor
This commit is contained in:
parent
48f3615ba8
commit
308c9aa650
2 changed files with 32 additions and 25 deletions
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -12,6 +12,7 @@ byobu (2.81) unreleased; urgency=low
|
||||||
- usr/bin/byobu-launcher
|
- usr/bin/byobu-launcher
|
||||||
- usr/bin/byobu
|
- usr/bin/byobu
|
||||||
- usr/bin/byobu-export
|
- usr/bin/byobu-export
|
||||||
|
- usr/bin/byobu-janitor
|
||||||
|
|
||||||
* usr/bin/byobu-config, usr/share/doc/byobu/help.txt: improve help
|
* usr/bin/byobu-config, usr/share/doc/byobu/help.txt: improve help
|
||||||
text, per feedback from Turnkey Linux users
|
text, per feedback from Turnkey Linux users
|
||||||
|
|
|
@ -58,9 +58,13 @@ fi
|
||||||
[ -r "$PROFILE" ] || ln -sf /usr/share/$PKG/profiles/common "$PROFILE"
|
[ -r "$PROFILE" ] || ln -sf /usr/share/$PKG/profiles/common "$PROFILE"
|
||||||
|
|
||||||
# Affects: Symlinks pointing to color profiles
|
# Affects: Symlinks pointing to color profiles
|
||||||
if [ -h "$PROFILE" ] && \
|
if [ -h "$PROFILE" ]; then
|
||||||
stat "$PROFILE" | grep -qs "File:.*->.*/usr/share/byobu/profiles/" && \
|
case "$(stat $PROFILE)" in
|
||||||
! stat "$PROFILE" | grep -qs "File:.*->.*/usr/share/byobu/profiles/common" ; then
|
*File:*-\>*/usr/share/byobu/profiles/common)
|
||||||
|
# All good, nothing to do
|
||||||
|
true
|
||||||
|
;;
|
||||||
|
*File:*-\>*/usr/share/byobu/profiles/*)
|
||||||
# Set default colors
|
# Set default colors
|
||||||
BG=W
|
BG=W
|
||||||
FG=k
|
FG=k
|
||||||
|
@ -84,6 +88,8 @@ if [ -h "$PROFILE" ] && \
|
||||||
esac
|
esac
|
||||||
rm -f "$PROFILE" 2>/dev/null
|
rm -f "$PROFILE" 2>/dev/null
|
||||||
byobu-select-profile -b $BG -f $FG >/dev/null 2>&1
|
byobu-select-profile -b $BG -f $FG >/dev/null 2>&1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -s "$HOME/.$PKG/keybindings" ] || echo "source /usr/share/$PKG/keybindings/common" > "$HOME/.$PKG/keybindings"
|
[ -s "$HOME/.$PKG/keybindings" ] || echo "source /usr/share/$PKG/keybindings/common" > "$HOME/.$PKG/keybindings"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue