Rev | Line | |
---|
[1071] | 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 ../.."
|
---|
[1089] | 13 | alias_set lsst 'find -type f -printf "%T@ %T+ %P\n" | sort -n'
|
---|
[1077] | 14 | alias_set rpm-disturl 'rpm -q --qf "%{DISTURL}\n"'
|
---|
[1090] | 15 | alias_set rpm-sortsize 'rpm -qa --qf "%{SIZE} %{NAME}\n" | sort -n'
|
---|
[1080] | 16 | alias_set rscp 'rsync -av --progress --compress'
|
---|
[1073] | 17 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.