mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 05:53:22 -07:00
* usr/bin/byobu.in:
- Use readlink if the tty command is not available
This commit is contained in:
parent
0c292308c8
commit
02737c8f45
2 changed files with 7 additions and 1 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -24,6 +24,8 @@ byobu (5.128) unreleased; urgency=medium
|
||||||
usr/bin/byobu-janitor.in:
|
usr/bin/byobu-janitor.in:
|
||||||
- Test if $HOME/.bashrc exists before modifying it (and potentially
|
- Test if $HOME/.bashrc exists before modifying it (and potentially
|
||||||
creating it)
|
creating it)
|
||||||
|
* usr/bin/byobu.in:
|
||||||
|
- Use readlink if the tty command is not available
|
||||||
* usr/lib/byobu/disk_io:
|
* usr/lib/byobu/disk_io:
|
||||||
- Ensure the detected mount point device exists
|
- Ensure the detected mount point device exists
|
||||||
* usr/lib/byobu/hostname:
|
* usr/lib/byobu/hostname:
|
||||||
|
|
|
@ -62,7 +62,11 @@ esac
|
||||||
export BYOBU_BACKEND
|
export BYOBU_BACKEND
|
||||||
|
|
||||||
# Store the parent tty
|
# Store the parent tty
|
||||||
export BYOBU_TTY=$(tty)
|
if eval $BYOBU_TEST tty >/dev/null 2>&1; then
|
||||||
|
export BYOBU_TTY=$(tty)
|
||||||
|
else
|
||||||
|
export BYOBU_TTY=$(readlink /proc/$$/fd/0)
|
||||||
|
fi
|
||||||
|
|
||||||
# Get the default window name
|
# Get the default window name
|
||||||
[ -n "$BYOBU_WINDOW_NAME" ] || BYOBU_WINDOW_NAME=-
|
[ -n "$BYOBU_WINDOW_NAME" ] || BYOBU_WINDOW_NAME=-
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue