Skip to content

Commit 42a11cd

Browse files
committedAug 7, 2017
Move history path creation to zshrc.zsh
1 parent 4100d50 commit 42a11cd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎env.zsh

-5
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,3 @@ export XDG_DATA_DIRS=${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}
1111

1212
# Set Zsh history file.
1313
export HISTFILE=${HISTFILE:-$XDG_CACHE_HOME/zsh/history}
14-
15-
# Create Zsh history file directory.
16-
if [[ ! -d $(dirname $HISTFILE) ]]; then
17-
mkdir -p $(dirname $HISTFILE)
18-
fi

‎plugin/zshrc.zsh

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Create Zsh history file directory.
2+
if [[ ! -d $(dirname $HISTFILE) ]]; then
3+
mkdir -p $(dirname $HISTFILE)
4+
fi
5+
16
# Update zshrc.
27
function zshupg () {
38
zplug update

0 commit comments

Comments
 (0)
Please sign in to comment.