source: dass-tools/etc/profile.d/dass-it.sh@ 1153

Last change on this file since 1153 was 1119, checked in by joergs, on Nov 14, 2012 at 11:49:46 AM

adding comment

File size: 680 bytes
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
11alias_set()
12{
13 name=$1
14 shift
15 alias $name >/dev/null 2>&1 || alias $name="$@"
16}
17
18alias_set l "ls -la"
19alias_set .. "cd .."
20alias_set ... "cd ../.."
21alias_set lsst 'find -type f -printf "%T@ %T+ %P\n" | sort -n'
22alias_set rpm-disturl 'rpm -q --qf "%{DISTURL}\n"'
23alias_set rpm-sortsize 'rpm -qa --qf "%{SIZE} %{NAME}\n" | sort -n'
24alias_set rscp 'rsync -av --progress --compress'
Note: See TracBrowser for help on using the repository browser.