From 400c715666f4c82ba13b6b72c5223cb7d29f7db8 Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Wed, 30 Jun 2010 18:01:31 +1000 Subject: [PATCH] Dynamically figure out the DOT_FILES path --- bash/bashrc | 2 +- zsh/zshrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bash/bashrc b/bash/bashrc index 0bac75d..cef20eb 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -1,5 +1,5 @@ export CURRENT_SHELL="bash" -export DOT_FILES=$HOME/.config +export DOT_FILES=$(dirname $(dirname $(readlink $BASH_SOURCE))) # All things that are both ZSH and Bash compatible source $DOT_FILES/shell/common.sh diff --git a/zsh/zshrc b/zsh/zshrc index f860e8a..26be7a8 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,5 +1,5 @@ export CURRENT_SHELL="zsh" -export DOT_FILES=$HOME/.config +export DOT_FILES=$(dirname $(dirname $(readlink $HOME/.zshrc))) # Install and load oh-my-zsh source $DOT_FILES/zsh/oh-my-zsh.zsh