diff options
| author | Thorsten Töpper <atsutane@freethoughts.de> | 2022-02-09 19:05:49 +0100 |
|---|---|---|
| committer | Thorsten Töpper <atsutane@freethoughts.de> | 2022-02-09 19:05:49 +0100 |
| commit | 95582561c51626715dc4f36b45e7134cd57fdd40 (patch) | |
| tree | f125480e77a01018c112a87346e445beb359d60d /zshrc | |
| parent | b10cacff0b9381c2ca1fa27644341d56171bc1ff (diff) | |
| download | dotfiles-95582561c51626715dc4f36b45e7134cd57fdd40.tar.gz dotfiles-95582561c51626715dc4f36b45e7134cd57fdd40.tar.bz2 | |
zshrc: function to move packages in local repository.
Diffstat (limited to 'zshrc')
| -rw-r--r-- | zshrc | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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" |
