diff options
| -rw-r--r-- | config/fish/config.fish | 4 | ||||
| -rw-r--r-- | guix/bashrc | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/config/fish/config.fish b/config/fish/config.fish index 10ab766..6d9c74c 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -5,7 +5,9 @@ if not contains ~/.local/bin $PATH end # export the path to our dotfiles -set -x DOTFILES_LOCATION (get_dotfiles_location) +if not set -q DOTFILES_LOCATION + set -x DOTFILES_LOCATION (get_dotfiles_location) +end # include cargo binaries if type -q multirust diff --git a/guix/bashrc b/guix/bashrc index 986cd82..c321c83 100644 --- a/guix/bashrc +++ b/guix/bashrc @@ -22,5 +22,11 @@ else PS1='\u@\h \w\$ ' fi +# set DOTFILES_LOCATION for i3 +if [[ "$DOTFILES_LOCATION " == " " ]] +then + export DOTFILES_LOCATION=$(~/.local/bin/get_dotfiles_location) +fi + # exec fish ! shopt -q login_shell && exec fish |
