From 2f60b86487aa67d8fda953fc901c0682a0a6ece0 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 30 Aug 2018 16:15:10 -0300 Subject: Use $AUTOJUMP_TXT instead of hardcoded path --- bash/init.sh | 4 ++-- bash/platform.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'bash') diff --git a/bash/init.sh b/bash/init.sh index 5c709184..777a3223 100644 --- a/bash/init.sh +++ b/bash/init.sh @@ -4,8 +4,8 @@ locked_init() { pushd ~/ > /dev/null mkdir -p ~/.emacs.d/.cache/ - mkdir -p ~/.local/share/autojump/ - touch ~/.local/share/autojump/autojump.txt + mkdir -p $(dirname "$AUTOJUMP_TXT") + touch "$AUTOJUMP_TXT" # clone all missing repos mr checkout > /dev/null diff --git a/bash/platform.sh b/bash/platform.sh index 67d85256..8b25e5c0 100644 --- a/bash/platform.sh +++ b/bash/platform.sh @@ -10,8 +10,10 @@ isLinux () { isMac && { export MEDIA_PREFIX=/Volumes + export AUTOJUMP_TXT="~/Library/autojump/autojump.txt" } isLinux && { export MEDIA_PREFIX=/run/media/andreh + export AUTOJUMP_TXT="~/.local/share/autojump/autojump.txt" } -- cgit v1.3