zsh: Consistent indentation (4 spaces)
This commit is contained in:
parent
2a1664ae85
commit
98aa11877f
|
@ -1,14 +1,14 @@
|
|||
# Docker function definitions
|
||||
|
||||
function speedtest() {
|
||||
docker run --init --rm tianon/speedtest --accept-license --accept-gdpr -p $@
|
||||
docker run --init --rm tianon/speedtest --accept-license --accept-gdpr -p $@
|
||||
}
|
||||
|
||||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939876
|
||||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939768
|
||||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939754
|
||||
function docker-gimp() {
|
||||
docker run --rm -it \
|
||||
docker run --rm -it \
|
||||
-e DISPLAY \
|
||||
-e HOME=/home/gimp \
|
||||
-u $(id -u) \
|
||||
|
@ -21,28 +21,28 @@ function docker-gimp() {
|
|||
}
|
||||
|
||||
function vobsub2srt() {
|
||||
docker run \
|
||||
--rm \
|
||||
-v $PWD:/data \
|
||||
docker run \
|
||||
--rm \
|
||||
-v $PWD:/data \
|
||||
-w /data \
|
||||
-u $(id -u) \
|
||||
sbruder/vobsub2srt \
|
||||
--blacklist '„“”|’/\`_~<>flfiff' \
|
||||
$@
|
||||
sbruder/vobsub2srt \
|
||||
--blacklist '„“”|’/\`_~<>flfiff' \
|
||||
$@
|
||||
}
|
||||
|
||||
function aucdtect() {
|
||||
docker run \
|
||||
--rm \
|
||||
-v "$PWD:/home/aucdtect/:ro" \
|
||||
-e uid=$(id -u) \
|
||||
-e gid=$(id -g) \
|
||||
sbruder/aucdtect \
|
||||
$@
|
||||
docker run \
|
||||
--rm \
|
||||
-v "$PWD:/home/aucdtect/:ro" \
|
||||
-e uid=$(id -u) \
|
||||
-e gid=$(id -g) \
|
||||
sbruder/aucdtect \
|
||||
$@
|
||||
}
|
||||
|
||||
function unrar () {
|
||||
docker run \
|
||||
docker run \
|
||||
-it \
|
||||
--rm \
|
||||
-v "$PWD:/data" \
|
||||
|
@ -83,7 +83,7 @@ function dive() {
|
|||
}
|
||||
|
||||
function vapoursynth() {
|
||||
docker run \
|
||||
docker run \
|
||||
--rm \
|
||||
-it \
|
||||
-e DISPLAY \
|
||||
|
@ -100,7 +100,7 @@ function vapoursynth() {
|
|||
}
|
||||
|
||||
function yuuno() {
|
||||
docker run \
|
||||
docker run \
|
||||
--rm \
|
||||
-it \
|
||||
-u $(id -u) \
|
||||
|
|
|
@ -160,8 +160,8 @@ function audacious-hack() (
|
|||
|
||||
## Aliases for programs
|
||||
if which exa 2>&1 >> /dev/null;then
|
||||
alias exa="exa --git --binary"
|
||||
alias ls="exa"
|
||||
alias exa="exa --git --binary"
|
||||
alias ls="exa"
|
||||
fi
|
||||
alias ipy="ipython3"
|
||||
alias line="chromium --user-data-dir=$HOME/.line --app=chrome-extension://ophjlpahpchlmihnnnihgmmeilfjmjjc/index.html"
|
||||
|
@ -182,37 +182,37 @@ 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 devops/docker|head -n 1)" "$1"
|
||||
drone secret add --name docker_username --data sbruder "$1"
|
||||
drone secret add --name docker_password --data "$(pass 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 sbruder.de/account|head -n 1)" "$1"
|
||||
drone secret add --name docker_username --data simon "$1"
|
||||
drone secret add --name docker_password --data "$(pass sbruder.de/account|head -n 1)" "$1"
|
||||
}
|
||||
|
||||
function drone-add-netlify() {
|
||||
drone secret add --name netlify_key --data "$(pass-field devops/netlify Drone-Key)" "$1"
|
||||
drone secret add --name netlify_key --data "$(pass-field devops/netlify Drone-Key)" "$1"
|
||||
}
|
||||
|
||||
function drone-add-s3() {
|
||||
drone secret add --name aws_access_key_id --data "$(pass-field sbruder.de/minio/personal User)" "$1"
|
||||
drone secret add --name aws_secret_access_key --data "$(pass sbruder.de/minio/personal|head -n 1)" "$1"
|
||||
drone secret add --name aws_access_key_id --data "$(pass-field sbruder.de/minio/personal User)" "$1"
|
||||
drone secret add --name aws_secret_access_key --data "$(pass sbruder.de/minio/personal|head -n 1)" "$1"
|
||||
}
|
||||
|
||||
function drone() (
|
||||
export DRONE_SERVER="$(pass-field sbruder.de/drone Server)"
|
||||
export DRONE_TOKEN="$(pass sbruder.de/drone|head -n 1)"
|
||||
~/bin/drone $@
|
||||
~/bin/drone $@
|
||||
)
|
||||
|
||||
function docker-ls() (
|
||||
export DOCKER_LS_PASSWORD="$(pass sbruder.de/account|head -n 1)"
|
||||
export DOCKER_LS_PASSWORD="$(pass sbruder.de/account|head -n 1)"
|
||||
~/bin/docker-ls $@
|
||||
)
|
||||
|
||||
function docker-rm() (
|
||||
export DOCKER_LS_PASSWORD="$(pass sbruder.de/account|head -n 1)"
|
||||
export DOCKER_LS_PASSWORD="$(pass sbruder.de/account|head -n 1)"
|
||||
~/bin/docker-rm $@
|
||||
)
|
||||
|
||||
|
|
Reference in a new issue