From af006c4db90e42a13ee78b4e892cb6aec996b681 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Wed, 7 Mar 2018 11:01:32 +0400 Subject: [PATCH] =?UTF-8?q?pff:=20s=C3=A9lectionner=20le=20premier=20profi?= =?UTF-8?q?l=20par=20d=C3=A9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pff b/pff index 3fe622f..7eee003 100755 --- a/pff +++ b/pff @@ -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