aboutsummaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authorThorsten Töpper <atsutane@freethoughts.de>2022-02-09 19:05:49 +0100
committerThorsten Töpper <atsutane@freethoughts.de>2022-02-09 19:05:49 +0100
commit95582561c51626715dc4f36b45e7134cd57fdd40 (patch)
treef125480e77a01018c112a87346e445beb359d60d /zshrc
parentb10cacff0b9381c2ca1fa27644341d56171bc1ff (diff)
downloaddotfiles-95582561c51626715dc4f36b45e7134cd57fdd40.tar.gz
dotfiles-95582561c51626715dc4f36b45e7134cd57fdd40.tar.bz2
zshrc: function to move packages in local repository.
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc10
1 files changed, 9 insertions, 1 deletions
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"