dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 501b5a7a502bd6ee7146285b1d0d9b79b6dbc8b8
parent dcb6379482a21c8059bf020efe959e16e0100731
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Wed,  9 Oct 2019 21:01:18 -0400

tmux: trade aliases for functions

Diffstat:
M.shrc.d/tmux.sh | 19+++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/.shrc.d/tmux.sh b/.shrc.d/tmux.sh @@ -1,6 +1,17 @@ type tmux > /dev/null 2>&1 || return -alias tas="tmux attach-session -t" -alias tns="tmux new-session -s" -alias tls="tmux list-sessions" -alias ts="tmux-session" +tas() { + tmux attach-session -t "$@" +} + +tns() { + tmux new-session -s "$@" +} + +tls() { + tmux list-sessions "$@" +} + +ts() { + tmux-session "$@" +}