From 075eddfd6717804cad5a3071c55451c55676c08e Mon Sep 17 00:00:00 2001 From: kj-sh604 Date: Sat, 13 Jul 2024 15:01:28 -0400 Subject: refactor: `.screenrc`-related changes² --- .config/fish/config.fish | 7 +++++-- .config/screen/screenrc | 17 +++++++++-------- .config/shell/.zshrc | 3 +++ 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index c5330d6..0fac9b0 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -8,7 +8,10 @@ if status is-interactive # commands to run in interactive sessions can go here fish_vi_key_bindings - # personal aliases + # personal aliases and abbreviations + abbr --add s "screen" + abbr --add sl "screen -ls" + abbr --add sr "screen -r" alias c="cal" alias d="disown" alias dots="cd ~/.local/share/.dotfiles/" @@ -21,7 +24,7 @@ if status is-interactive alias p="paru" alias printf=(command which printf) alias pu="paru -Syu --noconfirm" - alias s="cd ~/.local/bin && ls" + alias scripts="cd ~/.local/bin && ls" alias t="timedatectl" alias w="curl wttr.in" alias x="startx" diff --git a/.config/screen/screenrc b/.config/screen/screenrc index f1c29e3..97385a7 100644 --- a/.config/screen/screenrc +++ b/.config/screen/screenrc @@ -1,11 +1,12 @@ -hardstatus alwayslastline -hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' +# this config requires Screen v5 (-git master branch release) +truecolor on +hardstatus off +backtick 0 5 5 "/bin/date" '+%m/%d (%a)' +backtick 1 5 5 "/bin/date" '+%H%M' +hardstatus alwayslastline '%{#999999}[ GNU screen ]%{#ffffff} [ %{#ffffff}%= %{7}%?%-Lw%?%{1;0}%{#0072ff}|||%{15}%n%f%t%?(%u)%?%{1;0}%{#0072ff}|||%{7}%?%+Lw%?%? %=%{#ffffff} ] %{#999999}[ %{#999999}%0` %1`]' defscrollback 5000 -escape ^@a +escape ^\a mousetrack on -startup_message off -shelltitle "$ |fish" shell /usr/bin/fish - -# enable truecolor support (requires latest -git release) -truecolor on +shelltitle "$ |fish" +startup_message off diff --git a/.config/shell/.zshrc b/.config/shell/.zshrc index ad21fef..c4fab81 100644 --- a/.config/shell/.zshrc +++ b/.config/shell/.zshrc @@ -29,6 +29,9 @@ SAVEHIST=9999999 alias printf="$(command which printf)" alias pu="paru -Syu --noconfirm" alias s="cd ~/.local/bin && ls" + alias s="screen" + alias sl="screen -ls" + alias sr="screen -r" alias t="timedatectl" alias w="curl wttr.in" alias x="startx" -- cgit v1.2.3