From b6d68043f0489881b652140b304359c4d7b4b100 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 16 Jul 2024 14:15:05 +0200 Subject: [PATCH] Set profile title by default --- scripts/Common/Scripts/profile-base.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/Common/Scripts/profile-base.fish b/scripts/Common/Scripts/profile-base.fish index 3638144b..6d5e0d9a 100644 --- a/scripts/Common/Scripts/profile-base.fish +++ b/scripts/Common/Scripts/profile-base.fish @@ -7,6 +7,10 @@ begin function addProfileStatement -a name title shellBin extension profileRoot content set -l file (mktemp) + if [ -z "$title" ] + set -l title "$name" + end + if [ -z "$content" ] read -l content end