about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-01-15T15·57+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-01-17T10·56+0000
commit9e4c993849e939d881068589e4ae446bde047e12 (patch)
treedee6aefd68b1e68988861ed69ff5646250f28a4c
parent75aa59bac13c4cd8e96947c741556678ba84000e (diff)
Support direnv
DRY up environment variable definition by using direnv and an .envrc
file.
-rw-r--r--.envrc1
-rw-r--r--configs/shared/.config/lf/marks4
-rw-r--r--configs/shared/.emacs.d/wpc/bookmark.el2
-rw-r--r--configs/shared/.emacs.d/wpc/dotfiles.el4
-rw-r--r--configs/shared/.profile1
-rw-r--r--configs/shared/.zshrc3
6 files changed, 6 insertions, 9 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 000000000000..f95eed11e3a7
--- /dev/null
+++ b/.envrc
@@ -0,0 +1 @@
+export DOTFILES=~/dotfiles
diff --git a/configs/shared/.config/lf/marks b/configs/shared/.config/lf/marks
index 79c1e2dcf434..295576a0da1a 100644
--- a/configs/shared/.config/lf/marks
+++ b/configs/shared/.config/lf/marks
@@ -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
diff --git a/configs/shared/.emacs.d/wpc/bookmark.el b/configs/shared/.emacs.d/wpc/bookmark.el
index 2a4156041e15..60759a841416 100644
--- a/configs/shared/.emacs.d/wpc/bookmark.el
+++ b/configs/shared/.emacs.d/wpc/bookmark.el
@@ -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
diff --git a/configs/shared/.emacs.d/wpc/dotfiles.el b/configs/shared/.emacs.d/wpc/dotfiles.el
index d7fd3e400e09..0de84f6a62f5 100644
--- a/configs/shared/.emacs.d/wpc/dotfiles.el
+++ b/configs/shared/.emacs.d/wpc/dotfiles.el
@@ -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)
diff --git a/configs/shared/.profile b/configs/shared/.profile
index 725817222ca3..2f201c37d641 100644
--- a/configs/shared/.profile
+++ b/configs/shared/.profile
@@ -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
diff --git a/configs/shared/.zshrc b/configs/shared/.zshrc
index 0783f35529fd..7f846ce54de4 100644
--- a/configs/shared/.zshrc
+++ b/configs/shared/.zshrc
@@ -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