From 280df729e61f6bd482af136ddddad025cd6cebdb Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 30 Sep 2023 14:47:25 +0300 Subject: [PATCH] .bashrc: Save history and open a new `screen` window --- .bashrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.bashrc b/.bashrc index a9ac99d..bbbc13c 100644 --- a/.bashrc +++ b/.bashrc @@ -340,3 +340,10 @@ if [ "$SHLVL" -eq 1 -a "`type -t X`" = function ] && which startx >/dev/null 2>& X() { history -a; _non_bash_X; history -r; } fi + +if test -x /usr/bin/screen >/dev/null 2>&1; then + screen_newwin() { + history -a + screen "$@" + } +fi -- 2.39.5