summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-05-05 13:30:22 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-05-05 13:30:22 +0200
commitff30826e2cb384d9651e837296e4fc025c7d69e1 (patch)
tree7ce23af20312233727db82324edea1c5505710bf /etc
parentb43386b58d74836b7d7572eeee9f80916598d674 (diff)
Remove support for non-linux systems for now
I don't use it anyways...
Diffstat (limited to 'etc')
-rw-r--r--etc/.zshrc33
1 files changed, 10 insertions, 23 deletions
diff --git a/etc/.zshrc b/etc/.zshrc
index 615579e..f4dc993 100644
--- a/etc/.zshrc
+++ b/etc/.zshrc
@@ -8,13 +8,7 @@
# {{{ OS Detection
-system=${$(uname):l}
-
-alias 'linux:'='[[ ${system} == linux ]] &&'
-
-if [[ ${system} == linux ]] {
- [[ -f /etc/debian_version ]] && distro=debian
-}
+[[ -f /etc/debian_version ]] && distro=debian
# }}}
# {{{ Startup infos
@@ -267,23 +261,18 @@ unset filetypes meta format alias_apps
# To evade these defaults, use '=command' instead of 'command'
-linux: {
- alias grep='grep --color=auto'
- alias egrep='grep -E'
- alias fgrep='grep -F'
- alias bzgrep='bzgrep --color=auto'
- alias zgrep='zgrep --color=auto'
-}
+alias grep='grep --color=auto'
+alias egrep='grep -E'
+alias fgrep='grep -F'
+alias bzgrep='bzgrep --color=auto'
+alias zgrep='zgrep --color=auto'
-linux: alias df='df -hl --exclude-type=fuse.encfs' ||
- alias df='df -hl'
+alias df='df -hl --exclude-type=fuse.encfs'
-linux: alias du='du -shD' ||
- alias du='du -shH'
+alias du='du -shD'
-linux: alias ls='ls -h --color=auto' ||
- alias ls='ls -h'
+alias ls='ls -h --color=auto'
[[ -n ${commands[bsdtar]} ]] && alias tar=bsdtar
@@ -291,8 +280,7 @@ linux: alias ls='ls -h --color=auto' ||
alias exec='exec '
alias sudo='sudo '
-linux: alias netstat='sudo netstat --program --all --tcp --extend' ||
- alias netstat='sudo netstat -atp tcp'
+alias netstat='sudo netstat --program --all --tcp --extend'
alias bc='bc -l'
@@ -542,7 +530,6 @@ compdef _functions reload
# }}}
# {{{ Cleanup
-unalias 'linux:'
unfunction zrc_info
unset system distro
unset -m 'mime_*'