[template] Add new templates/zlogin
that sources `login_init.zsh`. Also refactor templates/zshrc to use a one-liner instead of if/then/fi.
This commit is contained in:
parent
375ca0f150
commit
06e8090a53
2 changed files with 11 additions and 6 deletions
8
templates/zlogin
Normal file
8
templates/zlogin
Normal 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
|
|
@ -7,8 +7,5 @@
|
|||
# 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
|
||||
|
|
Loading…
Reference in a new issue