Correctly sourcing.

This commit is contained in:
Faerbit 2016-07-14 13:03:13 +02:00
parent 0bfac13756
commit 9927ccf3c6

25
zshrc
View File

@ -1,18 +1,23 @@
# source all other zsh files # source all other zsh files
if [ -f .zsh_environment ] if [ -f ~/.zsh_environment ]
then then
source ~/.zsh_environment source ~/.zsh_environment
fi fi
#for accounts whithout root #for accounts whithout root
if [ -f .zsh_grml ] if [ -f ~/.zsh_grml ]
then then
source ~/.zsh_grml source ~/.zsh_grml
fi fi
#for untrusted machines #for untrusted machines
if [ -f .zsh_sensitive ] if [ -f ~/.zsh_sensitive ]
then then
source ~/.zsh_sensitive source ~/.zsh_sensitive
fi fi
#for accounts whithout root
if [ -f ~/.zsh_grml ]
then
source ~/.zsh_grml
fi
source ~/.zsh_functions source ~/.zsh_functions
export EDITOR=vim export EDITOR=vim
export SYSTEMD_EDITOR=vim export SYSTEMD_EDITOR=vim
@ -55,20 +60,6 @@ then
else else
alias v='vim' alias v='vim'
fi fi
if [ -f .zsh_environment ]
then
source ~/.zsh_environment
fi
#for accounts whithout root
if [ -f .zsh_grml ]
then
source ~/.zsh_grml
fi
#for untrusted machines
if [ -f .zsh_sensitive ]
then
source ~/.zsh_sensitive
fi
source ~/.zsh_functions source ~/.zsh_functions
export EDITOR=vim export EDITOR=vim
alias emacs='emacs -nw' alias emacs='emacs -nw'