[zsh] only use subshell in functions when creating variables
This commit is contained in:
parent
85fa9f6fea
commit
9c352f8f40
|
@ -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
|
||||
|
|
Reference in a new issue