# some usefull aliases

alias_set()
{
  name=$1
  shift
  alias $name >/dev/null 2>&1 || alias $name="$@"
}

alias_set l "ls -la"
alias_set  .. "cd .."
alias_set  ... "cd ../.."
alias_set lsst 'find -type f -printf "%T@  %T+   %P\n" | sort'

# VERSION: GPG Key ID
# RELEASE: Timestamp
alias_set rpm-gpg-list 'rpm -qa --nodigest --nosignature --qf "%{NAME}-%{VERSION}-%{RELEASE} %{SUMMARY}\n" gpg-pubkey*'

alias_set rpm-disturl 'rpm -q --qf "%{DISTURL}\n"'
