diff --git a/.local/bin/tm b/.local/bin/tm index 02193f5..87b8646 100755 --- a/.local/bin/tm +++ b/.local/bin/tm @@ -92,7 +92,6 @@ _set_session_vars() { # set up session name and config file - if passed in as arguments if [ "$#" -eq 2 ]; then if ! _file_exists "$1" && ! _file_exists "${session_dir}${1}"; then - echo "sess dir: ${session_dir}${1}" echo "$0: can not source configuration file: '${1}' does not exist." exit 1 fi @@ -109,7 +108,7 @@ _set_session_vars() { if [ -z "$session_name" ]; then # only if we have a filename should we append it to the session name if [ -n "$session_file" ]; then - fname=/$(basename "$session_file" .conf) + fname=/$(basename "$session_file" .session) fi # default to parent directory name / config file name for the session session_name=$(basename "$PWD" | sed 's/[^a-zA-Z0-9\-]//g' | tr . -)"$fname"