this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

improve my `tm` function

+10 -2
+10 -2
zshenv
··· 19 19 if [ ! -z "$1" ]; then 20 20 rootdir=$1 21 21 fi 22 - cd $rootdir 23 - tmux new-session -A -s "${rootdir##*/}" 22 + session_name="${rootdir##*/}" 23 + if [ -z "$TMUX" ]; then 24 + tmux new -A -s $session_name -c $rootdir 25 + else 26 + tmux has-session -t $session_name 27 + if [ $? != 0 ]; then 28 + tmux new -A -c $rootdir -s $session_name -d 29 + fi 30 + tmux switch -t $session_name 31 + fi 24 32 } 25 33 26 34 function mdp() {