Line | |
---|
1 | #
|
---|
2 | # some usefull aliases
|
---|
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
|
---|
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 ../.."
|
---|
21 | alias_set lsst 'find -type f -printf "%T@ %T+ %P\n" | sort -n'
|
---|
22 | alias_set rpm-disturl 'rpm -q --qf "%{DISTURL}\n"'
|
---|
23 | alias_set rpm-sortsize 'rpm -qa --qf "%{SIZE} %{NAME}\n" | sort -n'
|
---|
24 | alias_set rscp 'rsync -av --progress --compress'
|
---|
Note:
See
TracBrowser
for help on using the repository browser.