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

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

adding comment

File size: 680 bytes
RevLine 
[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
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 ../.."
[1089]21alias_set lsst 'find -type f -printf "%T@ %T+ %P\n" | sort -n'
[1077]22alias_set rpm-disturl 'rpm -q --qf "%{DISTURL}\n"'
[1090]23alias_set rpm-sortsize 'rpm -qa --qf "%{SIZE} %{NAME}\n" | sort -n'
[1080]24alias_set rscp 'rsync -av --progress --compress'
Note: See TracBrowser for help on using the repository browser.