1
0
Fork 0
mirror of synced 2024-12-27 00:13:20 -05:00

[template] Add new templates/zlogin

that sources `login_init.zsh`.

Also refactor templates/zshrc to use a one-liner instead of if/then/fi.

Closes #218
This commit is contained in:
Eric Nielsen 2017-09-28 15:54:24 -05:00
parent fc84b645e9
commit a8244a555a
2 changed files with 11 additions and 6 deletions

8
templates/zlogin Normal file
View file

@ -0,0 +1,8 @@
#
# User configuration sourced by login shells
#
# Initialize zim
[[ -s ${ZIM_HOME}/login_init.zsh ]] && source ${ZIM_HOME}/login_init.zsh

View file

@ -4,11 +4,8 @@
# User configuration sourced by interactive shells
#
# Change default zim location
# Change default zim location
export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
# Source zim
if [[ -s ${ZIM_HOME}/init.zsh ]]; then
source ${ZIM_HOME}/init.zsh
fi
# Start zim
[[ -s ${ZIM_HOME}/init.zsh ]] && source ${ZIM_HOME}/init.zsh