Support direnv
DRY up environment variable definition by using direnv and an .envrc file.
This commit is contained in:
parent
75aa59bac1
commit
9e4c993849
6 changed files with 6 additions and 9 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export DOTFILES=~/dotfiles
|
|
@ -1,6 +1,6 @@
|
||||||
D:~/Dropbox
|
D:~/Dropbox
|
||||||
G:/usr/local/google/home/wpcarro/Downloads
|
G:/usr/local/google/home/wpcarro/Downloads
|
||||||
M:/usr/local/google/home/wpcarro/Downloads
|
M:/usr/local/google/home/wpcarro/Downloads
|
||||||
c:~/Dropbox/dotfiles/configs
|
c:~/dotfiles/configs
|
||||||
d:~/Dropbox/dotfiles
|
d:~/dotfiles
|
||||||
s:~/Pictures/screenshots
|
s:~/Pictures/screenshots
|
||||||
|
|
|
@ -52,7 +52,7 @@ Otherwise, open with `counsel-find-file'."
|
||||||
:path "~/Dropbox/org"
|
:path "~/Dropbox/org"
|
||||||
:kbd "o")
|
:kbd "o")
|
||||||
(make-bookmark :label "dotfiles"
|
(make-bookmark :label "dotfiles"
|
||||||
:path "~/Dropbox/dotfiles"
|
:path "~/dotfiles"
|
||||||
:kbd "d")
|
:kbd "d")
|
||||||
(make-bookmark :label "current project"
|
(make-bookmark :label "current project"
|
||||||
:path constants/current-project
|
:path constants/current-project
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
(defconst dotfiles/whitelist
|
(defconst dotfiles/whitelist
|
||||||
'(("compton" . "~/.config/compton.conf")
|
'(("compton" . "~/.config/compton.conf")
|
||||||
("dotfiles" . "~/Dropbox/dotfiles/")
|
("dotfiles" . "~/dotfiles/")
|
||||||
("functions" . "~/functions.zsh")
|
("functions" . "~/functions.zsh")
|
||||||
("aliases" . "~/aliases.zsh")
|
("aliases" . "~/aliases.zsh")
|
||||||
("variables" . "~/variables.zsh")
|
("variables" . "~/variables.zsh")
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
(defun dotfiles/find-emacs-file (name)
|
(defun dotfiles/find-emacs-file (name)
|
||||||
"Call `find-file' on NAME located in dotfiles's emacs.d directory."
|
"Call `find-file' on NAME located in dotfiles's emacs.d directory."
|
||||||
(find-file
|
(find-file
|
||||||
(f-join "~/Dropbox/dotfiles/configs/shared/.emacs.d" name)))
|
(f-join "~/dotfiles/configs/shared/.emacs.d" name)))
|
||||||
|
|
||||||
(when dotfiles/install-kbds?
|
(when dotfiles/install-kbds?
|
||||||
(evil-leader/set-key "J" #'dotfiles/edit)
|
(evil-leader/set-key "J" #'dotfiles/edit)
|
||||||
|
|
|
@ -37,7 +37,6 @@ export CM_LAUNCHER=rofi
|
||||||
export FZF_DEFAULT_COMMAND='fd --hidden --follow --exclude ".git"'
|
export FZF_DEFAULT_COMMAND='fd --hidden --follow --exclude ".git"'
|
||||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||||
|
|
||||||
export DOTFILES="$HOME/Dropbox/dotfiles"
|
|
||||||
export ORG_DIRECTORY="$HOME/Dropbox/org"
|
export ORG_DIRECTORY="$HOME/Dropbox/org"
|
||||||
|
|
||||||
# Prevent compton from fading to the lock screen. This also prevents the white
|
# Prevent compton from fading to the lock screen. This also prevents the white
|
||||||
|
|
|
@ -21,9 +21,6 @@ command_exists() {
|
||||||
command -v $1 >/dev/null
|
command -v $1 >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: remove this from here
|
|
||||||
export DOTFILES=$HOME/Dropbox/dotfiles
|
|
||||||
|
|
||||||
# Load the oh-my-zsh library
|
# Load the oh-my-zsh library
|
||||||
antigen use oh-my-zsh
|
antigen use oh-my-zsh
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue