From 0f44d5ec20a30154858c7742a6fca502ec666122 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Sun, 4 Jul 2021 22:37:08 -0400 Subject: [PATCH] Add shell aliases --- .config/shell/aliases.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .config/shell/aliases.sh diff --git a/.config/shell/aliases.sh b/.config/shell/aliases.sh new file mode 100644 index 0000000..70e8429 --- /dev/null +++ b/.config/shell/aliases.sh @@ -0,0 +1,10 @@ +# From https://mastodon.xyz/@CarlCravens/105758509287927276 +alias clear='clear; tput cup $LINES 0' + +tmm(){ + if [ -z $1 ]; then + tmux attach-session -t 0 || tmux + else + tmux attach-session -t $1 || tmux new-session -t $1 || tmux + fi +}