Rev | Line | |
---|
[1119] | 1 | #
|
---|
[1071] | 2 | # some usefull aliases
|
---|
[1119] | 3 | #
|
---|
| 4 | # WARNING:
|
---|
| 5 | # bash aliases are not inherited to subshells,
|
---|
| 6 | # therefore this aliases are only available at login shells.
|
---|
| 7 | # If theses aliases should be available everywhere,
|
---|
| 8 | # add following line to /etc/bash.bashrc.local:
|
---|
| 9 | # source /etc/profile.d/dass-it.sh
|
---|
[1071] | 10 |
|
---|
| 11 | alias_set()
|
---|
| 12 | {
|
---|
| 13 | name=$1
|
---|
| 14 | shift
|
---|
| 15 | alias $name >/dev/null 2>&1 || alias $name="$@"
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | alias_set l "ls -la"
|
---|
| 19 | alias_set .. "cd .."
|
---|
| 20 | alias_set ... "cd ../.."
|
---|
[1089] | 21 | alias_set lsst 'find -type f -printf "%T@ %T+ %P\n" | sort -n'
|
---|
[1077] | 22 | alias_set rpm-disturl 'rpm -q --qf "%{DISTURL}\n"'
|
---|
[1090] | 23 | alias_set rpm-sortsize 'rpm -qa --qf "%{SIZE} %{NAME}\n" | sort -n'
|
---|
[1080] | 24 | alias_set rscp 'rsync -av --progress --compress'
|
---|
Note:
See
TracBrowser
for help on using the repository browser.