set default fallback for LoadSession

This commit is contained in:
Joe 2020-02-16 08:34:10 -06:00
parent 908411c539
commit 198d6e45e4
Signed by: joe
GPG Key ID: 8595A3F8F2CE1B74
1 changed files with 1 additions and 0 deletions

1
ysm.sh
View File

@ -55,6 +55,7 @@ LoadSession() {
echo "$(basename "${sessions[$i]}" .${config[extension]})"
done
read -rp "" selection
if [ -z "$selection" ]; then selection=0;fi
python2.7 ysess -i "${sessions[$selection]}"
}