From 7856650dda1d8a7285f49822b5632e9c81f2c592 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sun, 15 Jan 2012 09:32:24 -0600 Subject: [PATCH] * usr/bin/byobu: LP: #914424 - use READLINK * usr/share/byobu/profiles/tmux: - add some comments --- debian/changelog | 4 ++++ usr/bin/byobu | 3 ++- usr/share/byobu/profiles/tmux | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index d98c6f9d..c9df66b4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,10 @@ byobu (5.3) unreleased; urgency=low * usr/bin/byobu, usr/share/byobu/profiles/tmux: LP: #908766 - TERM must be 'screen', to work with: a) 256 colors, and b) vim/mutt with bce; tmux does not support bce properly + * usr/bin/byobu: LP: #914424 + - use READLINK + * usr/share/byobu/profiles/tmux: + - add some comments -- Dustin Kirkland Sun, 08 Jan 2012 20:28:08 -0600 diff --git a/usr/bin/byobu b/usr/bin/byobu index 82568ea8..6200cbc2 100755 --- a/usr/bin/byobu +++ b/usr/bin/byobu @@ -44,7 +44,8 @@ if [ -r "$HOME/.byoburc" ]; then fi if [ -z "${BYOBU_PREFIX}" ]; then # Find and export the installation location prefix - prefix="$(dirname $(dirname $(readlink -f $0)))" + command -v greadlink >/dev/null 2>&1 && export READLINK="greadlink" || export READLINK="readlink" + prefix="$(dirname $(dirname $($READLINK -f $0)))" if [ "$prefix" != "/usr" ]; then echo "export BYOBU_PREFIX='$prefix'" >> "$HOME/.byoburc" . "$HOME/.byoburc" diff --git a/usr/share/byobu/profiles/tmux b/usr/share/byobu/profiles/tmux index c7bf4ff5..ff930e89 100644 --- a/usr/share/byobu/profiles/tmux +++ b/usr/share/byobu/profiles/tmux @@ -63,16 +63,19 @@ set-window-option -g window-status-alert-attr bold set-window-option -g automatic-rename on set-window-option -g aggressive-resize on set-window-option -g monitor-activity on -#set-window-option -g xterm-keys on # Cannot use: # - screen-bce, screen-256color-bce: tmux does not support bce # - screen-256color: vim broken without -bce set -g default-terminal "screen" + +# The following helps with Shift-PageUp/Shift-PageDown set -g terminal-overrides 'xterm*:smcup@:rmcup@' + # Must set default-command to $SHELL, in order to not source ~/.profile # BUG: Should *not* hardcode /bin/bash here set -g default-command $SHELL + set -g status-bg $BYOBU_DARK set -g status-fg $BYOBU_LIGHT set -g status-interval 1