Mercurial > hg > zsh-env
view zshrc-linux-gnu @ 174:5da4de3d7ee1
remove files from /var/tmp/genkernel and /lib/modules, too
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Thu, 09 Apr 2020 11:21:59 +0200 |
parents | 2cc8820caae0 |
children |
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" elif [ -d /etc/apt ]; then linux_distro="debian" 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