From 35eb2f1c06bc755e3bd6118822f1ff0a73a7c677 Mon Sep 17 00:00:00 2001 From: Xuebin Su Date: Wed, 25 Oct 2023 04:24:15 -0400 Subject: [PATCH] Add alias to bashrc --- concourse/test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/concourse/test.sh b/concourse/test.sh index 0e2eab76..f7681832 100755 --- a/concourse/test.sh +++ b/concourse/test.sh @@ -17,7 +17,8 @@ function _main() { source "$CI_REPO_DIR/common/entry_common.sh" sudo passwd --delete gpadmin # for `su gpadmin` in start_gpdb - alias su='sudo su' + echo 'alias su="sudo su"' >> "$HOME/.bashrc" + source "$HOME/.bashrc" # for gpdemo-env.sh start_gpdb source "$HOME/.bashrc" # for gpdemo-env.sh