[zsh] Move func/ directory to zsh/functions
This commit is contained in:
parent
91da2fc583
commit
7c08c5131f
53 changed files with 1 additions and 1 deletions
16
zsh/functions/list_tmux_sessions
Normal file
16
zsh/functions/list_tmux_sessions
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env zsh
|
||||
# Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
function list_tmux_session
|
||||
{
|
||||
local tmux_out=`tmux list-sessions 2>/dev/null`
|
||||
[[ -z "$tmux_out" || -n "$TMUX" ]] && return
|
||||
|
||||
echo "You have the following active tmux sessions:"
|
||||
for session in ${(f)tmux_out}; do
|
||||
echo " $session"
|
||||
done
|
||||
echo
|
||||
}
|
||||
|
||||
list_tmux_session "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue