mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* usr/bin/byobu-janitor, usr/lib/byobu/menu,
usr/share/byobu/profiles/screenrc: LP: #1244509 - customizations of screen configuration should go in $BYOBU_CONFIG_DIR/.screenrc, which will be sourced last; rather than ~/.screenrc (which should be reserved for screen-without-byobu)
This commit is contained in:
parent
34f8b2c5ad
commit
875ea01656
4 changed files with 8 additions and 3 deletions
5
debian/changelog
vendored
5
debian/changelog
vendored
|
@ -3,6 +3,11 @@ byobu (5.62) unreleased; urgency=low
|
||||||
* usr/share/byobu/keybindings/f-keys.tmux:
|
* usr/share/byobu/keybindings/f-keys.tmux:
|
||||||
- as it turns out, showing the current window name when renaming
|
- as it turns out, showing the current window name when renaming
|
||||||
is really annoying
|
is really annoying
|
||||||
|
* usr/bin/byobu-janitor, usr/lib/byobu/menu,
|
||||||
|
usr/share/byobu/profiles/screenrc: LP: #1244509
|
||||||
|
- customizations of screen configuration should go in
|
||||||
|
$BYOBU_CONFIG_DIR/.screenrc, which will be sourced last; rather than
|
||||||
|
~/.screenrc (which should be reserved for screen-without-byobu)
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 18 Oct 2013 16:29:56 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 18 Oct 2013 16:29:56 -0500
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ MC=0
|
||||||
[ -r "$BYOBU_CONFIG_DIR/keybindings.tmux" ] || touch "$BYOBU_CONFIG_DIR/keybindings.tmux"
|
[ -r "$BYOBU_CONFIG_DIR/keybindings.tmux" ] || touch "$BYOBU_CONFIG_DIR/keybindings.tmux"
|
||||||
[ -r "$BYOBU_CONFIG_DIR/windows" ] || touch "$BYOBU_CONFIG_DIR/windows"
|
[ -r "$BYOBU_CONFIG_DIR/windows" ] || touch "$BYOBU_CONFIG_DIR/windows"
|
||||||
[ -r "$BYOBU_CONFIG_DIR/backend" ] || echo "BYOBU_BACKEND=$BYOBU_BACKEND" > "$BYOBU_CONFIG_DIR/backend"
|
[ -r "$BYOBU_CONFIG_DIR/backend" ] || echo "BYOBU_BACKEND=$BYOBU_BACKEND" > "$BYOBU_CONFIG_DIR/backend"
|
||||||
[ -r "$HOME/.screenrc" ] || touch "$HOME/.screenrc"
|
[ -r "$BYOBU_CONFIG_DIR/.screenrc" ] || touch "$BYOBU_CONFIG_DIR/.screenrc"
|
||||||
[ -r "$BYOBU_CONFIG_DIR/.tmux.conf" ] || touch "$BYOBU_CONFIG_DIR/.tmux.conf"
|
[ -r "$BYOBU_CONFIG_DIR/.tmux.conf" ] || touch "$BYOBU_CONFIG_DIR/.tmux.conf"
|
||||||
for f in status statusrc; do
|
for f in status statusrc; do
|
||||||
if [ ! -r "$BYOBU_CONFIG_DIR/$f" ]; then
|
if [ ! -r "$BYOBU_CONFIG_DIR/$f" ]; then
|
||||||
|
|
|
@ -25,7 +25,7 @@ __menu_detail() {
|
||||||
|
|
||||||
__menu() {
|
__menu() {
|
||||||
local bindings esc key text
|
local bindings esc key text
|
||||||
[ -r "$BYOBU_CONFIG_DIR/keybindings" ] && bindings="$BYOBU_CONFIG_DIR/keybindings" || bindings="$HOME/.screenrc"
|
[ -r "$BYOBU_CONFIG_DIR/keybindings" ] && bindings="$BYOBU_CONFIG_DIR/keybindings" || bindings="$BYOBU_CONFIG_DIR/.screenrc"
|
||||||
if grep -qs "^source.*screen-escape-keys$" $bindings 2>/dev/null || grep -qs "^source.*f-keys.screen.disable$" $bindings 2>/dev/null || [ "$1" = "--disable-f-keys" ]; then
|
if grep -qs "^source.*screen-escape-keys$" $bindings 2>/dev/null || grep -qs "^source.*f-keys.screen.disable$" $bindings 2>/dev/null || [ "$1" = "--disable-f-keys" ]; then
|
||||||
# Get the second to last byte from the "escape" option
|
# Get the second to last byte from the "escape" option
|
||||||
esc=`grep "^escape" $bindings | tail -c 3 | head -c 1`
|
esc=`grep "^escape" $bindings | tail -c 3 | head -c 1`
|
||||||
|
|
|
@ -24,4 +24,4 @@
|
||||||
|
|
||||||
source $BYOBU_CONFIG_DIR/profile
|
source $BYOBU_CONFIG_DIR/profile
|
||||||
source $BYOBU_WINDOWS
|
source $BYOBU_WINDOWS
|
||||||
source $HOME/.screenrc
|
source $BYOBU_CONFIG_DIR/.screenrc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue