From 351d779f20c00d0206ec04ea35b63a2b6a916e4c Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 25 Oct 2020 13:19:46 +0100 Subject: [PATCH] bundles/users: add metadata entry for bash aliases --- bundles/users/files/bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bundles/users/files/bashrc b/bundles/users/files/bashrc index 0bca528..cc4f5bb 100644 --- a/bundles/users/files/bashrc +++ b/bundles/users/files/bashrc @@ -26,4 +26,9 @@ last | grep 'still logged in' alias v='vim -p' alias l='ls -lAh' +alias ipb='ip -brief' + +% for k, v in sorted(node.metadata.get('bash_aliases', {}).items()): +alias ${k}='${v}' +% endfor