add SaveSession function with name entry and default fallback
This commit is contained in:
parent
a6da5ccd6d
commit
908411c539
6
ysm.sh
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…
Reference in New Issue