From cc42575bc2ccaa0f667f32f5d10824976fbffbd9 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Thu, 20 Jun 2024 23:27:00 -0500 Subject: [PATCH] Add gitlab restart alias --- home/xonsh_footer.xsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/xonsh_footer.xsh b/home/xonsh_footer.xsh index 019831e..26baea5 100644 --- a/home/xonsh_footer.xsh +++ b/home/xonsh_footer.xsh @@ -15,6 +15,10 @@ def bw_unlock(): $BW_SESSION = token return token +def _glrestart(args): + sudo nixos-container run gitlab -- systemctl restart gitlab + sudo nixos-container run gitlab -- systemctl restart nginx + def _cfetch(args): bw_unlock() $CIRCLECI_CLI_TOKEN=$(bw get password CircleCI) @@ -68,6 +72,7 @@ def _bake(args): git clone src:greg/copier-templates.git ~/.copier-templates copier copy @(str(templates / args[0])) . +aliases['glrestart'] = _glrestart aliases['cfetch'] = _cfetch aliases['bake'] = _bake aliases['rebuild'] = _rebuild