Mercurial > hg > zsh-env
comparison zshrc-linux-gnu @ 42:fa52868da3d4
add detection for CentOS
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Tue, 04 Mar 2014 08:54:43 +0100 |
parents | 2cd74a85976a |
children | 2cc8820caae0 |
comparison
equal
deleted
inserted
replaced
41:2206bf6b1157 | 42:fa52868da3d4 |
---|---|
12 | 12 |
13 # try to guess the distribution and include a special script for that | 13 # try to guess the distribution and include a special script for that |
14 local linux_distro="unknown" | 14 local linux_distro="unknown" |
15 if [ -d /usr/portage ]; then | 15 if [ -d /usr/portage ]; then |
16 linux_distro="gentoo" | 16 linux_distro="gentoo" |
17 elif [ -f /etc/centos-release ]; then | |
18 linux_distro="centos" | |
17 fi | 19 fi |
18 | 20 |
19 # now source the distro zshrc file if it exists | 21 # now source the distro zshrc file if it exists |
20 local distro_zshrc=$HOME/.zsh-env/zshrc-${linux_distro} | 22 local distro_zshrc=$HOME/.zsh-env/zshrc-${linux_distro} |
21 if [ -r "${distro_zshrc}" ]; then | 23 if [ -r "${distro_zshrc}" ]; then |