From 26e11fc4a0bde1505847265306520c834c235812 Mon Sep 17 00:00:00 2001 From: Jiri Tyr Date: Fri, 24 Nov 2017 13:45:39 +0000 Subject: [PATCH] Fixing AWK regexp for Mac --- sources/prompt_forwarding/local | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/prompt_forwarding/local b/sources/prompt_forwarding/local index 447beef..548bd52 100644 --- a/sources/prompt_forwarding/local +++ b/sources/prompt_forwarding/local @@ -14,7 +14,7 @@ function gbt__local_rcfile() { echo "export GBT__CONF='$GBT__CONF'" > $GBT__CONF cat $GBT__PROFILE >> $GBT__CONF - echo "$(alias | awk '/gbt_/ {sub(/^(alias |)(gbt___|)/, "", $0); print "alias "$0}')" >> $GBT__CONF + echo "$(alias | awk '/gbt_/ {sub(/^(alias )?(gbt___)?/, "", $0); print "alias "$0}')" >> $GBT__CONF echo "export GBT__STATUS='$(source $GBT__THEME; GBT_SHELL='bash' GBT_CARS='Status, Custom1' gbt 1)'" >> $GBT__CONF echo -n "PS1='" >> $GBT__CONF (source $GBT__THEME; gbt | awk '{gsub(/\\\$/, "$"); printf "%s", $0}') >> $GBT__CONF @@ -132,7 +132,7 @@ function gbt_vagrant() { export GBT__CONF=\"/tmp/.gbt.$RANDOM\" && echo \"export GBT__CONF='\$GBT__CONF'\" > \$GBT__CONF && echo \"$(base64 $GBT__PROFILE | tr -d '\r\n')\" | base64 -d >> \$GBT__CONF && - echo \"$(alias | awk '/gbt_/ {sub(/^(alias |)(gbt___|)/, "", $0); print "alias "$0}')\" >> \$GBT__CONF && + echo \"$(alias | awk '/gbt_/ {sub(/^(alias )?(gbt___)?/, "", $0); print "alias "$0}')\" >> \$GBT__CONF && echo \"export GBT__STATUS='$(source $GBT__THEME; GBT_SHELL='bash' GBT_CARS='Status, Custom1' gbt 1)'\" >> \$GBT__CONF && echo \"PS1='$(source $GBT__THEME; gbt)'\" >> \$GBT__CONF && bash --rcfile \$GBT__CONF;