mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* usr/bin/byobu-disable-prompt, usr/bin/byobu-enable-prompt,
usr/share/byobu/profiles/bashrc: - don't put profile reloads in the bash history - use a ~/.byobu/prompt file as a redirect, and to enable end user customizations - fix a bash error
This commit is contained in:
parent
a11296184a
commit
1fc076ac82
4 changed files with 12 additions and 4 deletions
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -7,6 +7,12 @@ byobu (5.51) unreleased; urgency=low
|
||||||
- use a common bashrc file
|
- use a common bashrc file
|
||||||
* usr/share/byobu/profiles/bashrc:
|
* usr/share/byobu/profiles/bashrc:
|
||||||
- allow override via a $DISTRO env variable
|
- allow override via a $DISTRO env variable
|
||||||
|
* usr/bin/byobu-disable-prompt, usr/bin/byobu-enable-prompt,
|
||||||
|
usr/share/byobu/profiles/bashrc:
|
||||||
|
- don't put profile reloads in the bash history
|
||||||
|
- use a ~/.byobu/prompt file as a redirect, and to enable
|
||||||
|
end user customizations
|
||||||
|
- fix a bash error
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 02 Aug 2013 17:30:11 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 02 Aug 2013 17:30:11 -0500
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,10 @@ PKG="byobu"
|
||||||
. "${BYOBU_PREFIX}/lib/${PKG}/include/common"
|
. "${BYOBU_PREFIX}/lib/${PKG}/include/common"
|
||||||
|
|
||||||
|
|
||||||
|
prompt="${BYOBU_CONFIG_DIR}/prompt"
|
||||||
|
[ -e "$prompt" ] || printf ". ${BYOBU_PREFIX}/share/${PKG}/profiles/bashrc #byobu-prompt#\n" > "$prompt"
|
||||||
$PKG-disable-prompt --no-reload "$1" || true
|
$PKG-disable-prompt --no-reload "$1" || true
|
||||||
printf ". ${BYOBU_PREFIX}/share/${PKG}/profiles/bashrc #byobu-prompt#\n" >> "$HOME/.bashrc"
|
printf "[ -r $prompt ] && . $prompt #byobu-prompt#\n" >> "$HOME/.bashrc"
|
||||||
|
|
||||||
if [ -n "$TMUX" ]; then
|
if [ -n "$TMUX" ]; then
|
||||||
tmux send-keys " . ~/.bashrc" \; send-keys Enter
|
tmux send-keys " . ~/.bashrc" \; send-keys Enter
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue