refactor(env): template environment.d config and update fish aliases
Replace hardcoded config/environment.d/generic.conf with a Tera template (environments.tmpl) rendered via mise, pulling DOTFILES_DIR, THEME_DIR, SECOND_BRAIN, and user info from mise.toml vars. - Add SECOND_BRAIN variable in mise.toml for the vault path - Update fish aliases to use $SECOND_BRAIN instead of a hardcoded path - Fix Obsidian nvim aliases with proper quoting - Remove stale dotfiles.conf template reference
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
TERM=xterm-256color
|
||||
npm_config_prefix=$HOME/.local
|
||||
@@ -51,9 +51,9 @@ if status is-interactive
|
||||
|
||||
if command -q nvim
|
||||
set -gx EDITOR nvim
|
||||
alias oo="cd ~/Documents/nca-notes/"
|
||||
alias on="nvim +Obsidian new"
|
||||
alias os="nvim +Obsidian search"
|
||||
alias oo="cd $SECOND_BRAIN"
|
||||
alias on="nvim '+Obsidian new'"
|
||||
alias os="nvim '+Obsidian search'"
|
||||
alias mini="NVIM_APPNAME=mini.nvim nvim"
|
||||
end
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ USER_FULLNAME = "Steve Beaulac"
|
||||
USER_EMAIL = "steve@beaulac.me"
|
||||
DOTFILES_DIR = "{{config_root}}"
|
||||
THEME_DIR = "~/.config/omarchy/current/theme"
|
||||
SECOND_BRAIN = "~/Documents/sjv-brain"
|
||||
|
||||
[env]
|
||||
DOTFILES_DIR = "{{config_root}}"
|
||||
@@ -15,9 +16,8 @@ dotfiles.default_mode = "symlink-each"
|
||||
"~/.config/btop" = "config/btop"
|
||||
"~/.config/btop/themes/current.theme" = { source = "~/.config/omarchy/current/theme/btop.theme", mode = "symlink" }
|
||||
"~/.config/emacs" = "config/emacs"
|
||||
"~/.config/environment.d" = "config/environment.d"
|
||||
"~/.config/environment.d/generic.conf" = { source = "templates/environments.tmpl", mode = "template", template = "tera" }
|
||||
"~/.gnupg" = "config/gnupg"
|
||||
"~/.config/environment.d/dotfiles.conf" = { source = "templates/dofiles.conf.tmpl", template = "tera", mode = "template" }
|
||||
"~/.config/fish" = "config/fish" # check if we really need the fisher plugins
|
||||
"~/.config/gdb" = "config/gdb"
|
||||
"~/.config/ghostty" = "config/ghostty"
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
TERM=xterm-256color
|
||||
npm_config_prefix=$HOME/.local
|
||||
|
||||
DOTFILES_DIR = "{{ vars.DOTFILES_DIR }}"
|
||||
USER_FULLNAME = "{{ vars.USER_FULLNAME }}"
|
||||
USER_EMAIL = "{{ vars.USER_FULLNAME }}"
|
||||
THEME_DIR = "{{ vars.THEME_DIR }}"
|
||||
SECOND_BRAIN = "{{ vars.SECOND_BRAIN }}"
|
||||
Reference in New Issue
Block a user