From 9c352f8f40b23681a1cc80c13d21bb3c5bc85570 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 14 Jun 2019 14:54:58 +0000 Subject: [PATCH] [zsh] only use subshell in functions when creating variables --- home/.zshrc.local | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/home/.zshrc.local b/home/.zshrc.local index 72372a7..8daadde 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -194,30 +194,22 @@ source ~/.zshrc.docker ## drone ci function drone-add-hub() { - ( drone secret add --name docker_username --data sbruder "$1" drone secret add --name docker_password --data "$(pass show devops/docker|head -n 1)" "$1" - ) } function drone-add-registry() { - ( drone secret add --name docker_username --data simon "$1" drone secret add --name docker_password --data "$(pass show accounts/sbruderldap|head -n 1)" "$1" - ) } function drone-add-netlify() { - ( drone secret add --name netlify_key --data "$(pass show devops/netlify |grep Drone-Key|cut -d: -f2|tr -d ' ')" "$1" - ) } function drone-add-s3() { - ( drone secret add --name aws_access_key_id --data "$(pass show data/minio/personal|grep User|cut -d: -f2|tr -d ' ')" "$1" drone secret add --name aws_secret_access_key --data "$(pass show data/minio/personal|head -n 1)" "$1" - ) } function drone() { @@ -228,15 +220,11 @@ function drone() { } function docker-ls() { - ( DOCKER_LS_PASSWORD=$(pass show accounts/sbruderldap|head -n 1) ~/bin/docker-ls $@ - ) } function docker-rm() { - ( DOCKER_LS_PASSWORD=$(pass show accounts/sbruderldap|head -n 1) ~/bin/docker-rm $@ - ) } ## lexicon