Skip to content

Commit

Permalink
guix: export DOTFILES_LOCATION during session init
Browse files Browse the repository at this point in the history
  • Loading branch information
fischerling committed Aug 8, 2017
1 parent 23ea135 commit ae00cbc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions guix/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ae00cbc

Please sign in to comment.