Line | |
---|
1 | # some usefull aliases
|
---|
2 |
|
---|
3 | alias_set()
|
---|
4 | {
|
---|
5 | name=$1
|
---|
6 | shift
|
---|
7 | alias $name >/dev/null 2>&1 || alias $name="$@"
|
---|
8 | }
|
---|
9 |
|
---|
10 | alias_set l "ls -la"
|
---|
11 | alias_set .. "cd .."
|
---|
12 | alias_set ... "cd ../.."
|
---|
13 | alias_set lsst 'find -type f -printf "%T@ %T+ %P\n" | sort'
|
---|
14 |
|
---|
15 | # VERSION: GPG Key ID
|
---|
16 | # RELEASE: Timestamp
|
---|
17 | alias_set rpm-gpg-list 'rpm -qa --nodigest --nosignature --qf "%{NAME}-%{VERSION}-%{RELEASE} %{SUMMARY}\n" gpg-pubkey*'
|
---|
18 |
|
---|
19 | alias_set rpm-disturl 'rpm -q --qf "%{DISTURL}\n"'
|
---|
Note:
See
TracBrowser
for help on using the repository browser.