Support direnv

DRY up environment variable definition by using direnv and an .envrc
file.
This commit is contained in:
William Carroll 2020-01-15 15:57:05 +00:00
parent 75aa59bac1
commit 9e4c993849
6 changed files with 6 additions and 9 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
export DOTFILES=~/dotfiles

View file

@ -1,6 +1,6 @@
D:~/Dropbox
G:/usr/local/google/home/wpcarro/Downloads
M:/usr/local/google/home/wpcarro/Downloads
c:~/Dropbox/dotfiles/configs
d:~/Dropbox/dotfiles
c:~/dotfiles/configs
d:~/dotfiles
s:~/Pictures/screenshots

View file

@ -52,7 +52,7 @@ Otherwise, open with `counsel-find-file'."
:path "~/Dropbox/org"
:kbd "o")
(make-bookmark :label "dotfiles"
:path "~/Dropbox/dotfiles"
:path "~/dotfiles"
:kbd "d")
(make-bookmark :label "current project"
:path constants/current-project

View file

@ -22,7 +22,7 @@
(defconst dotfiles/whitelist
'(("compton" . "~/.config/compton.conf")
("dotfiles" . "~/Dropbox/dotfiles/")
("dotfiles" . "~/dotfiles/")
("functions" . "~/functions.zsh")
("aliases" . "~/aliases.zsh")
("variables" . "~/variables.zsh")
@ -47,7 +47,7 @@
(defun dotfiles/find-emacs-file (name)
"Call `find-file' on NAME located in dotfiles's emacs.d directory."
(find-file
(f-join "~/Dropbox/dotfiles/configs/shared/.emacs.d" name)))
(f-join "~/dotfiles/configs/shared/.emacs.d" name)))
(when dotfiles/install-kbds?
(evil-leader/set-key "J" #'dotfiles/edit)

View file

@ -37,7 +37,6 @@ export CM_LAUNCHER=rofi
export FZF_DEFAULT_COMMAND='fd --hidden --follow --exclude ".git"'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export DOTFILES="$HOME/Dropbox/dotfiles"
export ORG_DIRECTORY="$HOME/Dropbox/org"
# Prevent compton from fading to the lock screen. This also prevents the white

View file

@ -21,9 +21,6 @@ command_exists() {
command -v $1 >/dev/null
}
# TODO: remove this from here
export DOTFILES=$HOME/Dropbox/dotfiles
# Load the oh-my-zsh library
antigen use oh-my-zsh