diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-06 18:06:14 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-06 18:06:14 +0100 |
commit | 113c9cf66b5eb99c076062efedf0b8b727002fa4 (patch) | |
tree | b8ffa2bb8b8a00f20d0cb2a4eed3b636734adea5 | |
parent | d17bb0a223f5c37e0b2d6acfbdc389eb4911ca93 (diff) |
default aliases: Avoid setting an alias twice
-rw-r--r-- | etc/alias/default | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/etc/alias/default b/etc/alias/default index e8336a1..3662bb4 100644 --- a/etc/alias/default +++ b/etc/alias/default @@ -7,9 +7,11 @@ # grep # -linux: alias egrep='grep -E --color=auto' -linux: alias fgrep='grep -F --color=auto' -linux: alias grep='grep --color=auto' +linux: { + alias egrep='grep -E --color=auto' + alias fgrep='grep -F --color=auto' + alias grep='grep --color=auto' +} # @@ -17,16 +19,16 @@ linux: alias grep='grep --color=auto' # # human-readable sizes, local filesystems only -alias df='df -hl' -linux: alias df='df -hl --exclude-type=fuse.encfs' +linux: alias df='df -hl --exclude-type=fuse.encfs' || + alias df='df -hl' # human-readable sizes, summarize, dereference args -non-linux: alias du='du -shH' -linux: alias du='du -shD' +linux: alias du='du -shD' || + alias du='du -shH' # human-readable sizes, mark executables with '*' etc. -alias ls='ls -Fh' -linux: alias ls='ls -Fh --color=auto' +linux: alias ls='ls -Fh --color=auto' || + alias ls='ls -Fh' # @@ -40,8 +42,8 @@ alias host='host -a' alias mx='mx -aZ' # Only TCP/TCP6, not sockets and such -salias netstat='netstat -atp tcp' -linux: salias netstat='netstat --program --all --tcp --extend' +linux: salias netstat='netstat --program --all --tcp --extend' || + salias netstat='netstat -atp tcp' # |