From e225c5250f107c2d2bcea66177c28cf7ef2bd41b Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 20 Aug 2024 10:29:19 +0100 Subject: [PATCH] Use a simpler tmux alias --- roles/home-cli/files/profile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/roles/home-cli/files/profile b/roles/home-cli/files/profile index fed3a18..f2fc332 100644 --- a/roles/home-cli/files/profile +++ b/roles/home-cli/files/profile @@ -258,6 +258,7 @@ alias sdk-gnome="flatpak run --command=/bin/bash --share=network --filesystem=ho alias sl="ls -r" alias streamenc="openssl aes-256-cbc -pbkdf2 -in - -out - -e" alias streamdec="openssl aes-256-cbc -pbkdf2 -in - -out - -d" +alias tm="tmux new-session -A" alias txt2pdf="soffice --infilter='Text (encoded):UTF8,,Berkeley Mono,en-GB' --convert-to pdf" alias wgr=wordgrinder alias ytmp3="youtube-dl -q -x --audio-format=mp3" @@ -358,16 +359,6 @@ emacsro () { emacs "$1" -f view-mode } -# Try to attach to an existing tmux session, else create a new one. -tm () { - if tmux list-sessions > /dev/null 2>&1 - then - tmux attach-session - else - tmux new-session - fi -} - usermotd () { # OS (kernel) name and version in reverse video. printf '\033[7m%s\033[0m\n' "$(uname -sr)"