diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2013-09-13 17:32:30 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2013-09-13 17:32:30 +0200 |
commit | 1e07854619864e33356add44a1559f0df7a1fbba (patch) | |
tree | fbfa9f34bc761927125ddfacda9db0a235bb1a0c /.bashrc-fedora | |
parent | cc73e5a112468c337d4dab435b15cfba2d80be78 (diff) | |
download | dotfiles-1e07854619864e33356add44a1559f0df7a1fbba.tar.gz dotfiles-1e07854619864e33356add44a1559f0df7a1fbba.tar.xz dotfiles-1e07854619864e33356add44a1559f0df7a1fbba.zip |
Bash Fedora-favoured config: stick better with namespaced commands
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to '.bashrc-fedora')
-rw-r--r-- | .bashrc-fedora | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.bashrc-fedora b/.bashrc-fedora index 689b36a..afb9c9a 100644 --- a/.bashrc-fedora +++ b/.bashrc-fedora @@ -2,14 +2,14 @@ diralias ~/wrkspc/gkoji -whichpkg() { +pkg-which() { local found=$(which "$1") [ -n "${found}" ] && found=$(man -w "$1" 2>/dev/null) [ -n "${found}" ] && rpm -qf "${found}" || { echo; repoquery -f "*/$1";} } # see https://bugzilla.redhat.com/show_bug.cgi?id=852197 -pkgdep() { +pkg-dep() { TMPFILE=$(mktemp rpqXXXX); repoquery --tree-requires -- "$1" \ | grep -v -eglibc -e$(rpm -q python) -e$(rpm -q python-libs) \ @@ -23,13 +23,13 @@ pkgdep() { } # see http://superuser.com/questions/194928/view-configuration-file-changes-with-rpm-or-yum -pkgdiff() { +pkg-confdiff() { rpm -V "$1" | cut -d/ -f2- | xargs -I{} rpmpeek \ <(curl -- $(yumdownloader --urls $(rpm -q "$1") | sed -n '/^http/{s|//|/|2;p}')) \ colordiff -u /{} ./{} 2>/dev/null } -# something like "fedpkg prep" +# something like "fedpkg prep", but highlighting non-perfect patches rpmbuild-patch() { local filter=cat verbose= arg= if [ "$1" = "-v" ]; then |