summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-07 01:04:17 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-07 01:04:17 +0200
commit54e30c772b3f52e9b5d9008f8ab8df94f1df7f5b (patch)
tree08848e7a0b2390945fccc00cf0850426c32d9a80
parent926ab212f8016ba6b336cc8a58bef82495434c7f (diff)
added non-linux:
-rw-r--r--etc/alias/default15
-rw-r--r--etc/rc1
2 files changed, 11 insertions, 5 deletions
diff --git a/etc/alias/default b/etc/alias/default
index 10dd8ea..fa42bd7 100644
--- a/etc/alias/default
+++ b/etc/alias/default
@@ -5,9 +5,11 @@
alias cp='cp -i'
# The free/used/total space of encfs type filesystems is broken here
-linux: alias df='df --human-readable --local --exclude-type=fuse.encfs' || alias df='df -hl'
+linux: alias df='df --human-readable --local --exclude-type=fuse.encfs'
+non-linux: alias df='df -hl'
-linux: alias du='du --human-readable --summarize --dereference-args' || alias du='du -sh'
+linux: alias du='du --human-readable --summarize --dereference-args'
+non-linux: alias du='du -sh'
alias feh='feh --quiet'
@@ -29,10 +31,12 @@ alias ifconfig='/sbin/ifconfig'
export LESS='--silent --clear-screen --RAW-CONTROL-CHARS --quit-if-one-screen --ignore-case --tabs=5'
# classify = "/" after dirs, "*" after executables etc
-linux: alias ls='ls --color=auto --classify --human-readable' || alias ls='ls -Fh'
+linux: alias ls='ls --color=auto --classify --human-readable'
+non-linux: alias ls='ls -Fh'
# Somehow folllowing the 'learn something new every day' ;-)
-linux: alias man='man --all' || alias man='man -a'
+linux: alias man='man --all'
+non-linux: alias man='man -a'
# Useful on sshfs or similar
alias mplayer='mplayer -cache 6000 -cache-min 50'
@@ -42,7 +46,8 @@ alias mv='mv -i'
alias mx='mx -aZ'
# Only TCP/TCP6, not sockets and such
-linux: alias netstat='sudo netstat --program --listening --all --tcp --extend' || alias netstat='sudo netstat -latp tcp'
+linux: alias netstat='sudo netstat --program --listening --all --tcp --extend'
+non-linux: alias netstat='sudo netstat -latp tcp'
# BSD style
alias ps='ps aux'
diff --git a/etc/rc b/etc/rc
index 337fa80..817671f 100644
--- a/etc/rc
+++ b/etc/rc
@@ -4,6 +4,7 @@
ZDIR=$HOME/packages/zsh/etc
uname=$(uname)
alias 'linux:'='[ $uname = Linux ] &&'
+alias 'non-linux:'='[ $uname = Linux ] ||'
alias 'ls-colors:'='which dircolors &> /dev/null &&'
alias 'openbsd:'='[ $uname = OpenBSD ] &&'