screen: don't prompt with select-screen-profile, if ~/.screenrc exists

and ~/.screenrc-profile does not
This commit is contained in:
Dustin Kirkland 2009-02-16 20:36:52 -06:00
commit 61ddb3a5d3
2 changed files with 11 additions and 3 deletions

5
debian/changelog vendored
View file

@ -1,8 +1,9 @@
screen-profiles (1.25) UNRELEASED; urgency=low
*
* screen: don't prompt with select-screen-profile, if ~/.screenrc exists
and ~/.screenrc-profile does not
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 16 Feb 2009 16:37:10 -0600
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 16 Feb 2009 20:35:53 -0600
screen-profiles (1.24-0ubuntu1) jaunty; urgency=low

9
screen
View file

@ -17,8 +17,15 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# If ~/.screenrc exists but ~/.screenrc-profile does not, this shows that the
# user has an existing custom screen configuration, and thus we will not
# bother them with a select-screen-profile prompt
if [ -r "$HOME/.screenrc" -a ! -e "$HOME/.screenrc-profile" ]; then
exec /usr/bin/screen.real -c "$HOME/.screenrc" "$@"
exit $?
fi
# Ensure that the user has selected a screen profile
# Otherwise, let's ensure that the user has selected a screen profile
[ -r "$HOME/.screenrc-profile" ] || /usr/bin/select-screen-profile
# Ensure that their keybindings are seeded