zsh: Consistent indentation (4 spaces)

This commit is contained in:
Simon Bruder 2020-07-04 22:31:10 +02:00
parent 2a1664ae85
commit 98aa11877f
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 30 additions and 30 deletions

View file

@ -1,14 +1,14 @@
# Docker function definitions # Docker function definitions
function speedtest() { 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=939876
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939768 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939768
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939754 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939754
function docker-gimp() { function docker-gimp() {
docker run --rm -it \ docker run --rm -it \
-e DISPLAY \ -e DISPLAY \
-e HOME=/home/gimp \ -e HOME=/home/gimp \
-u $(id -u) \ -u $(id -u) \
@ -21,28 +21,28 @@ function docker-gimp() {
} }
function vobsub2srt() { function vobsub2srt() {
docker run \ docker run \
--rm \ --rm \
-v $PWD:/data \ -v $PWD:/data \
-w /data \ -w /data \
-u $(id -u) \ -u $(id -u) \
sbruder/vobsub2srt \ sbruder/vobsub2srt \
--blacklist '„“”|/\`_~<>flfiff' \ --blacklist '„“”|/\`_~<>flfiff' \
$@ $@
} }
function aucdtect() { function aucdtect() {
docker run \ docker run \
--rm \ --rm \
-v "$PWD:/home/aucdtect/:ro" \ -v "$PWD:/home/aucdtect/:ro" \
-e uid=$(id -u) \ -e uid=$(id -u) \
-e gid=$(id -g) \ -e gid=$(id -g) \
sbruder/aucdtect \ sbruder/aucdtect \
$@ $@
} }
function unrar () { function unrar () {
docker run \ docker run \
-it \ -it \
--rm \ --rm \
-v "$PWD:/data" \ -v "$PWD:/data" \
@ -83,7 +83,7 @@ function dive() {
} }
function vapoursynth() { function vapoursynth() {
docker run \ docker run \
--rm \ --rm \
-it \ -it \
-e DISPLAY \ -e DISPLAY \
@ -100,7 +100,7 @@ function vapoursynth() {
} }
function yuuno() { function yuuno() {
docker run \ docker run \
--rm \ --rm \
-it \ -it \
-u $(id -u) \ -u $(id -u) \

View file

@ -160,8 +160,8 @@ function audacious-hack() (
## Aliases for programs ## Aliases for programs
if which exa 2>&1 >> /dev/null;then if which exa 2>&1 >> /dev/null;then
alias exa="exa --git --binary" alias exa="exa --git --binary"
alias ls="exa" alias ls="exa"
fi fi
alias ipy="ipython3" alias ipy="ipython3"
alias line="chromium --user-data-dir=$HOME/.line --app=chrome-extension://ophjlpahpchlmihnnnihgmmeilfjmjjc/index.html" alias line="chromium --user-data-dir=$HOME/.line --app=chrome-extension://ophjlpahpchlmihnnnihgmmeilfjmjjc/index.html"
@ -182,37 +182,37 @@ source ~/.zshrc.docker
## drone ci ## drone ci
function drone-add-hub() { function drone-add-hub() {
drone secret add --name docker_username --data sbruder "$1" 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_password --data "$(pass devops/docker|head -n 1)" "$1"
} }
function drone-add-registry() { function drone-add-registry() {
drone secret add --name docker_username --data simon "$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" drone secret add --name docker_password --data "$(pass sbruder.de/account|head -n 1)" "$1"
} }
function drone-add-netlify() { 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() { 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_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_secret_access_key --data "$(pass sbruder.de/minio/personal|head -n 1)" "$1"
} }
function drone() ( function drone() (
export DRONE_SERVER="$(pass-field sbruder.de/drone Server)" export DRONE_SERVER="$(pass-field sbruder.de/drone Server)"
export DRONE_TOKEN="$(pass sbruder.de/drone|head -n 1)" export DRONE_TOKEN="$(pass sbruder.de/drone|head -n 1)"
~/bin/drone $@ ~/bin/drone $@
) )
function docker-ls() ( 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 $@ ~/bin/docker-ls $@
) )
function docker-rm() ( 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 $@ ~/bin/docker-rm $@
) )