load a session by name
.Pp
.Fl S
- start in disk usage analyzer mode
+ persistent session
.Pp
.Fl "t secs"
idle timeout in seconds to lock terminal
instance, or with a program option.
.Pp
When a session is loaded dynamically, the last working session is saved
-automatically to a dedicated -- "last session" -- session file.
+automatically to a dedicated -- "last session" -- session file. The "last
+session" is also used in persistent session mode.
.Pp
All the session files are located by session name in the directory
.Pp
break; // fallthrough
}
+ if (session && *session == '@' && !session[1])
+ save_session(TRUE, NULL);
+
/* CD on Quit */
/* In vim picker mode, clear selection and exit */
/* Picker mode: reset buffer or clear file */
" -r use advcpmv patched cp, mv\n"
" -R no rollover at edges\n"
" -s name load session by name\n"
- " -S du mode\n"
+ " -S persistent session\n"
" -t secs timeout to lock\n"
" -T key sort order [a/d/e/r/s/t/v]\n"
" -V show version\n"
case 'c':
cfg.cliopener = 1;
break;
- case 'S':
- cfg.blkorder = 1;
- nftw_fn = sum_bsize;
- blk_shift = ffs(S_BLKSIZE) - 1; // fallthrough
case 'd':
cfg.showdetail = 1;
printptr = &printent_long;
if (env_opts_id < 0)
session = optarg;
break;
+ case 'S':
+ session = "@";
+ break;
case 't':
if (env_opts_id < 0)
idletimeout = atoi(optarg);