view zshrc-linux-gnu @ 83:75a2fb4e6887

use a non-conflicting alias for docker-compose
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 05 Feb 2016 06:45:18 +0100 (2016-02-05)
parents fa52868da3d4
children 2cc8820caae0
line wrap: on
line source
#
# zshrc-linux-gnu: zsh env for various linux distributions
#

# custom environment variables
export LESS="-X"

PROMPT="%m%# "
if [[ "$TERM" =~ screen ]]; then
    PROMPT="(s)%m%# "
fi

# try to guess the distribution and include a special script for that
local linux_distro="unknown"
if [ -d /usr/portage ]; then
    linux_distro="gentoo"
elif [ -f /etc/centos-release ]; then
    linux_distro="centos"
fi

# now source the distro zshrc file if it exists
local distro_zshrc=$HOME/.zsh-env/zshrc-${linux_distro}
if [ -r "${distro_zshrc}" ]; then
    . ${distro_zshrc}
fi