[zsh] only use subshell in functions when creating variables

legacy
Simon Bruder 2019-06-14 14:54:58 +00:00
parent 85fa9f6fea
commit 9c352f8f40
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 0 additions and 12 deletions

View File

@ -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