feat: make opam more XDG_USER_DIR compliant
$OPAMROOT contains both config and data, so it's not perfect... still better than having it in ~/ tho !
This commit is contained in:
parent
09b2d82212
commit
a98e149ad1
@ -19,6 +19,8 @@ export ANDROID_PREFS_ROOT="$XDG_CONFIG_HOME/android"
|
|||||||
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0"
|
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0"
|
||||||
export TEXMFHOME="$XDG_DATA_HOME/texmf"
|
export TEXMFHOME="$XDG_DATA_HOME/texmf"
|
||||||
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
||||||
|
export OPAMROOT="$XDG_DATA_HOME/opam"
|
||||||
|
export COQBIN="$OPAMROOT/default/bin"
|
||||||
|
|
||||||
## default programs
|
## default programs
|
||||||
export SUDO_ASKPASS="$HOME/.local/bin/dmenupass"
|
export SUDO_ASKPASS="$HOME/.local/bin/dmenupass"
|
||||||
|
@ -78,3 +78,6 @@ typeset -A ZSH_HIGHLIGHT_STYLES
|
|||||||
ZSH_HIGHLIGHT_STYLES[alias]='fg=green,bold'
|
ZSH_HIGHLIGHT_STYLES[alias]='fg=green,bold'
|
||||||
ZSH_HIGHLIGHT_STYLES[path]='fg=magenta,bold'
|
ZSH_HIGHLIGHT_STYLES[path]='fg=magenta,bold'
|
||||||
ZSH_HIGHLIGHT_STYLES[unknown-token]='bg=red,fg=white,bold'
|
ZSH_HIGHLIGHT_STYLES[unknown-token]='bg=red,fg=white,bold'
|
||||||
|
|
||||||
|
# opam configuration
|
||||||
|
test -r "$OPAMROOT/opam-init/init.zsh" && . "$OPAMROOT/opam-init/init.zsh" > /dev/null 2> /dev/null || true
|
||||||
|
Reference in New Issue
Block a user