this repo has no description
0
fork

Configure Feed

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

zsh: allow tm to accept arg from stdin

+6 -4
+6 -4
scripts/tmopen.sh
··· 19 19 echo "${basename%.git}" | tr '.' '-' 20 20 } 21 21 22 - # Check if a parameter was provided 23 - if [ -z "$1" ]; then 22 + # Accept input from argument or stdin 23 + if [ -n "$1" ]; then 24 + input=$1 25 + elif [ ! -t 0 ]; then 26 + read -r input 27 + else 24 28 echo "Usage: tmopen <path_or_url> [session_name]" 25 29 exit 1 26 30 fi 27 - 28 - input=$1 29 31 is_url=false 30 32 31 33 # Check if the input is a URL