From 99c168781b849a8b4c8732e1cb70e8d0a1d9003b Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Sun, 9 Dec 2018 21:43:39 +0100 Subject: [PATCH] simplified zprofile --- etc/zsh/zprofile | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/etc/zsh/zprofile b/etc/zsh/zprofile index c8e41a0..70a8814 100644 --- a/etc/zsh/zprofile +++ b/etc/zsh/zprofile @@ -1,35 +1,15 @@ -# /etc/zsh/zprofile -# $Id$ - # Load environment settings from profile.env, which is created by -# env-update from the files in /etc/env.d +# a platform tool (e.g. eclectic env update, env-update) from the files in /etc/env.d if [ -e /etc/profile.env ] ; then . /etc/profile.env fi -# You should override these in your ~/.zprofile (or equivalent) for per-user -# settings. For system defaults, you can add a new file in /etc/profile.d/. export EDITOR=${EDITOR:-/bin/nano} export PAGER=${PAGER:-/usr/bin/less} -# 077 would be more secure, but 022 is generally quite realistic umask 022 -# Set up PATH depending on whether we're root or a normal user. -# There's no real reason to exclude sbin paths from the normal user, -# but it can make tab-completion easier when they aren't in the -# user's PATH to pollute the executable namespace. -# -# It is intentional in the following line to use || instead of -o. -# This way the evaluation can be short-circuited and calling whoami is -# avoided. -if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then - PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}" -else - PATH="/usr/local/bin:/usr/bin:/bin:${PATH}:/home/${USER}/Apps/bin" -fi -export PATH -unset ROOTPATH +export PATH="/home/${USER}/Apps/bin:/usr/local/bin:/usr/bin:/bin:${PATH}" shopts=$- setopt nullglob