From 95582561c51626715dc4f36b45e7134cd57fdd40 Mon Sep 17 00:00:00 2001 From: Thorsten Töpper Date: Wed, 9 Feb 2022 19:05:49 +0100 Subject: zshrc: function to move packages in local repository. --- zshrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 9f3ccbc..ca061e7 100644 --- a/zshrc +++ b/zshrc @@ -20,10 +20,18 @@ alias cscope='cscope -R' alias ltr='ls -ltr --color' -alias aurclone () { +function aurclone () { git clone "https://aur.archlinux.org/${1}.git" } +function add-to-build-req-repo() { + if [ ! -f "${1}" ]; then + return + fi + _pkgname=`basename "${1}"` + mv ${1} /mnt/code/repo_build_requirements/x86_64/ + repo-add /mnt/code/repo_build_requirements/x86_64/build_requirements.db.tar.xz "/mnt/code/repo_build_requirements/x86_64/${_pkgname}" +} function parse_git_branch() { print "%{\e[1;34m%}$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')%{\e[0m%}\n" -- cgit v1.2.3-70-g09d2