-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshbop.zsh
executable file
·34 lines (28 loc) · 944 Bytes
/
zshbop.zsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env zsh
# =========================================================
# -- zshbop.zsh -- zshbop main file
# --
# =========================================================
# -- Include
export ZSHBOP_ROOT=${0:a:h}
source ${ZSHBOP_ROOT}/lib/include.zsh
###########################################################
# --- Start zshbop
###########################################################
STARTLOG
# -- Check for old bits
zshbop_cleanup 1
###########################################################
###########################################################
# --- DON'T PUT ANYTHING BELOW THIS LINE ---
# -------------------------
# -- Initialize ZSHBOP
# -------------------------
init_zshbop
# -- Check if git-check-exit is set
_log "Checking if \$ZSHBOP_GIT_CHECK is set"
if [[ $ZSHBOP_GIT_CHECK == "1" ]]; then
_log "Running git-check-exit on logout to check for git changes"
trap "git-check-exit" EXIT
fi
STOPLOG