From 206b5ae3cd2b2b61127d66f913353dd2b8cdd23e Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Sun, 25 Aug 2019 17:41:50 -0400 Subject: [PATCH] Added completions for dt function --- zsh/zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zsh/zshrc b/zsh/zshrc index d8a20f6..dfd915d 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -140,6 +140,11 @@ function dt() { tmux new-session -A -s $session_name } +function _dt_completion { + reply=($(tmux list-sessions -F '#S')) +} +compctl -K _dt_completion dt + if [[ -a $HOME/.zshsrc ]]; then source $HOME/.zshsrc else