dot_profile: merge into chezmoi
This commit is contained in:
parent
b2b87a5edc
commit
0562de28c5
5
src/.chezmoi.toml.tmpl
Normal file
5
src/.chezmoi.toml.tmpl
Normal file
@ -0,0 +1,5 @@
|
||||
{{- $systemprofilechoices := list "DEFAULT" "SLIM" "MINIMAL" -}}
|
||||
{{- $systemprofile := promptChoiceOnce . "systemprofile" "Select a system profile (use capital letter)" $systemprofilechoices "SLIM" -}}
|
||||
|
||||
[data]
|
||||
systemprofile = {{- $systemprofile | quote -}}
|
@ -1,19 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Profile that enables/disables certain features based on the device
|
||||
# Everything might need to be restarted for this to take effect.
|
||||
|
||||
## ----------
|
||||
## IMPORTANT!
|
||||
## ----------
|
||||
## Copy this to '~/.config/dot_profile'.
|
||||
|
||||
# Profiles
|
||||
# --------
|
||||
# DEFAULT:
|
||||
# Everything's enabled.
|
||||
# SLIM:
|
||||
# Try to reduce bloat; turn off expensive plugins and eye-candy.
|
||||
# MINIMAL:
|
||||
# Nothing is launched automatically, and no plugins are installed.
|
||||
|
||||
export SYSTEM_PROFILE="DEFAULT"
|
@ -70,11 +70,7 @@ if [ -r "$XDG_CONFIG_HOME"/identity ]; then
|
||||
fi
|
||||
|
||||
# Profile to enable/disable features on certain devices
|
||||
if [ ! -f "$XDG_CONFIG_HOME"/dot_profile ]; then
|
||||
export SYSTEM_PROFILE="SLIM"
|
||||
else
|
||||
. "$XDG_CONFIG_HOME"/dot_profile
|
||||
fi
|
||||
export SYSTEM_PROFILE={{ .systemprofile | quote }}
|
||||
|
||||
# Typst root
|
||||
export TYPST_ROOT="$HOME/nt"
|
Loading…
Reference in New Issue
Block a user