add SaveSession function with name entry and default fallback

dev
Joe 3 years ago
parent a6da5ccd6d
commit 908411c539
Signed by: joe
GPG Key ID: 8595A3F8F2CE1B74
  1. 6
      ysm.sh

@ -58,6 +58,12 @@ LoadSession() {
python2.7 ysess -i "${sessions[$selection]}"
}
SaveSession() {
read -rp "Session name (${config[name]}):" name
if [ -z "$name" ]; then name=${config[name]};fi
python2.7 ysess -o "${config[path]}/$name.${config[extension]}"
}
Debug() {
echo Debug Enabled!
echo Sessions: ${config[path]}/*.${config[extension]}

Loading…
Cancel
Save