From d86ad02ceee19dbcc16e3e737d47416a54c8b022 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 6 Jan 2024 03:02:23 +0100 Subject: [PATCH] zsh/pass-wrappers: Drop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I can’t remember using them. --- users/simon/modules/zsh/default.nix | 2 -- users/simon/modules/zsh/pass-wrappers.zsh | 13 ------------- 2 files changed, 15 deletions(-) delete mode 100644 users/simon/modules/zsh/pass-wrappers.zsh diff --git a/users/simon/modules/zsh/default.nix b/users/simon/modules/zsh/default.nix index 1fbfa6e..5a7da64 100644 --- a/users/simon/modules/zsh/default.nix +++ b/users/simon/modules/zsh/default.nix @@ -120,8 +120,6 @@ in # history setopt HIST_IGNORE_ALL_DUPS - - source ${./pass-wrappers.zsh} '') ]; }; diff --git a/users/simon/modules/zsh/pass-wrappers.zsh b/users/simon/modules/zsh/pass-wrappers.zsh deleted file mode 100644 index 72df6ca..0000000 --- a/users/simon/modules/zsh/pass-wrappers.zsh +++ /dev/null @@ -1,13 +0,0 @@ -function pass-field() { - pass show "$1" | grep "$2" | cut -d: -f2- | tr -d ' ' -} - -function drone() ( - export DRONE_SERVER="$(pass-field sbruder.de/drone Server)" - export DRONE_TOKEN="$(pass sbruder.de/drone | head -n 1)" - command drone $@ -) - -function drone-add-netlify() { - drone secret add --name netlify_auth_token --data "$(pass-field web/netlify.com Drone-Key)" "$1" -}