clean up zshrc, zprofile

This commit is contained in:
Alexander Gehrke (crater2150) 2016-01-05 03:45:19 +01:00
parent b87c12e662
commit 40c5d167af
2 changed files with 10 additions and 7 deletions

View file

@ -1,11 +1,17 @@
# gentoo specific # /etc/zsh/zprofile
# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/files/zprofile-1,v 1.1 2010/08/15 12:21:56 tove Exp $
# Load environment settings from profile.env, which is created by
# env-update from the files in /etc/env.d
if [ -e /etc/profile.env ] ; then if [ -e /etc/profile.env ] ; then
. /etc/profile.env . /etc/profile.env
fi fi
setopt nullglob
for sh in /etc/profile.d/*.sh ; do for sh in /etc/profile.d/*.sh ; do
[ -r "$sh" ] && . "$sh" [ -r "$sh" ] && . "$sh"
done done
unsetopt nullglob
if [ -e "$HOME/.profile" ]; then if [ -e "$HOME/.profile" ]; then
. "$HOME/.profile" . "$HOME/.profile"
@ -28,9 +34,5 @@ export PATH
unset ROOTPATH unset ROOTPATH
shopts=$- shopts=$-
setopt nullglob
unsetopt nullglob
set -$shopts set -$shopts
unset sh shopts unset sh shopts

5
zshrc
View file

@ -2,8 +2,6 @@
HISTFILE=~/.histfile HISTFILE=~/.histfile
HISTSIZE=100000 HISTSIZE=100000
SAVEHIST=100000 SAVEHIST=100000
GPG_TTY=`tty`
export GPG_TTY
setopt autocd extendedglob notify correct autonamedirs setopt autocd extendedglob notify correct autonamedirs
setopt list_ambiguous autopushd pushd_ignore_dups setopt list_ambiguous autopushd pushd_ignore_dups
@ -31,6 +29,8 @@ for i in ${ZDOTDIR:-/etc/zsh}/aliases/*~${ZDOTDIR:-/etc/zsh}/aliases/*.zwc; do
. $i . $i
done done
#ZMODLOAD_BLACKLIST=( prompt )
stty -ixon stty -ixon
. ${ZDOTDIR:-/etc/zsh}/modules/loader.zsh && mod_init . ${ZDOTDIR:-/etc/zsh}/modules/loader.zsh && mod_init
@ -44,4 +44,5 @@ zstyle ':completion:*:descriptions' format %B%d%b
zstyle ':completion:*:messages' format %d zstyle ':completion:*:messages' format %d
zstyle ':completion:*:warnings' format No matches for: %d zstyle ':completion:*:warnings' format No matches for: %d
exists todo && todo exists todo && todo