pff: sélectionner le premier profil par défaut

This commit is contained in:
Jephté Clain 2018-03-07 11:01:32 +04:00
parent e20757b45e
commit af006c4db9
1 changed files with 2 additions and 2 deletions

4
pff
View File

@ -1125,10 +1125,10 @@ function switch_cmd() {
local profile="$1" pffdir="$2"
local -a profiles
[ -n "$profile" ] || profile=Base
ensure_pffdir pffdir "$pffdir"
autoinit "$pffdir"
[ -n "$profile" ] || setx profile=get_first_profile "$pffdir"
setx -a profiles=get_profiles "$pffdir"
if ! array_contains profiles "$profile"; then
if ! array_contains PROFILES "$profile"; then