-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzprofile
46 lines (35 loc) · 888 Bytes
/
zprofile
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
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env zsh
THIS_SCRIPT=$(basename "${0}")
# Load includes
. "${SHELL_PROFILE_PATH}/script_functions" "${THIS_SCRIPT}"
if hasFlag "${SHELL_PROFILE_FLAG_ZPROFILE_DONE}"; then
msgDebug "Skipping ${THIS_SCRIPT}, already run.\n"
return
fi
setFlag "${SHELL_PROFILE_FLAG_ZPROFILE_DONE}"
msgDebug "==> Running ${THIS_SCRIPT} script\n"
. "$HOME/.profile"
#
# Setup history
#
export HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history
export SAVEHIST=1000000
export HISTSIZE=1000000
setopt EXTENDED_HISTORY
setopt SHARE_HISTORY
setopt APPEND_HISTORY
setopt INC_APPEND_HISTORY
#
# Set ls aliases
#
alias ls='ls $LS_OPTIONS -F'
alias ll='ls $LS_OPTIONS -lF'
#
# Include local settings
#
if [ -f "${HOME}/.shell/${THIS_SCRIPT}.local" ]; then
. "${HOME}/.shell/${THIS_SCRIPT}.local"
fi
msgDebug "==> Done in ${THIS_SCRIPT} script\n"
cleanUp ${THIS_SCRIPT}
# vim: syntax=sh:ts=4:sw=4