aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-02-23 12:26:29 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-02-23 12:26:29 +0100
commitf1ae7aec9fd82b10abf17a19de69982f6c2f66da (patch)
treea1510155550ed9b940cdff9d8d40cebd29aeeb61 /.bashrc
parent623b8e09f00704cb953f1b718ff9675eaffa7989 (diff)
downloaddotfiles-f1ae7aec9fd82b10abf17a19de69982f6c2f66da.tar.gz
dynamic path generation
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc13
1 files changed, 10 insertions, 3 deletions
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`.