From 85fa9f6feac888611d7c7181c6e2f3e12bf7bdb3 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 14 Jun 2019 14:53:16 +0000 Subject: [PATCH] [zsh] add lexicon function (credentials) --- home/.zshrc.local | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/home/.zshrc.local b/home/.zshrc.local index da17289..72372a7 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -238,3 +238,12 @@ function docker-rm() { DOCKER_LS_PASSWORD=$(pass show accounts/sbruderldap|head -n 1) ~/bin/docker-rm $@ ) } + +## lexicon +function lecicon() { + ( + LEXICON_HENET_USERNAME="$(pass management/he|grep User|cut -d: -f2|tr -d ' ')" + LEXICON_HENET_PASSWORD="$(pass management/he|head -n 1)" + lexicon $@ + ) +}