From f1ae7aec9fd82b10abf17a19de69982f6c2f66da Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 23 Feb 2020 12:26:29 +0100 Subject: dynamic path generation --- .bashrc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index 109fe0a..119272d 100644 --- a/.bashrc +++ b/.bashrc @@ -6,15 +6,22 @@ case $- in *) return;; esac -export BASH_IT_CUSTOM="/home/jonas/vimconfig" +if [ -e ".files" ] +then + source .files +else + DOTFILEBASE="/home/jonas/vimconfig" +fi + +export BASH_IT_CUSTOM=$DOTFILEBASE # Path to the bash it configuration -export BASH_IT="/home/jonas/vimconfig/bash-it" +export BASH_IT="$DOTFILEBASE/bash-it" # Lock and Load a custom theme file. # Leave empty to disable theming. # location /.bash_it/themes/ -export BASH_IT_THEME='/home/jonas/vimconfig/theme.bash' +export BASH_IT_THEME="$DOTFILEBASE/theme.bash" # (Advanced): Change this to the name of your remote repo if you # cloned bash-it with a remote other than origin such as `bash-it`. -- cgit v1.2.3