mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-14 04:07:18 +00:00
Update env settings
This commit is contained in:
parent
b449bcaaf1
commit
c7d28ddcb6
|
@ -6,19 +6,22 @@ export PIPENV_VENV_IN_PROJECT=1 # Force pipenv to create new environments within
|
||||||
export GPG_TTY=${tty}
|
export GPG_TTY=${tty}
|
||||||
export LESS_TERMCAP_md="${yellow}" # Highlight section titles in manual pages
|
export LESS_TERMCAP_md="${yellow}" # Highlight section titles in manual pages
|
||||||
export BASH_SILENCE_DEPRECATION_WARNING=1 # Hide the “default interactive shell is now zsh” warning on macOS.
|
export BASH_SILENCE_DEPRECATION_WARNING=1 # Hide the “default interactive shell is now zsh” warning on macOS.
|
||||||
export MANPAGER="sh -c 'col -bx | bat -l man -p'" # Use bat as man page formatter for colored man pages
|
command -v bat > /dev/null && export MANPAGER="sh -c 'col -bx | bat -l man -p'" # Format manuals with bat (colors)
|
||||||
|
|
||||||
# Add executable directories into PATH
|
# Add executable directories into PATH
|
||||||
PATH+=":$HOME/.local/bin"
|
PATH+=":$HOME/.local/bin"
|
||||||
# Add npm binaries
|
# Add npm binaries
|
||||||
PATH+=":$HOME/.local/share/npm/bin"
|
PATH+=":$HOME/.local/share/npm/bin"
|
||||||
|
|
||||||
|
|
||||||
|
# Only run XDG configs for non-root users
|
||||||
|
if [ $UID -ne 0]; then
|
||||||
# XDG Standard paths
|
# XDG Standard paths
|
||||||
export XDG_CONFIG_HOME="$HOME/.config"
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
export XDG_CACHE_HOME="$HOME/.cache"
|
export XDG_CACHE_HOME="$HOME/.cache"
|
||||||
export XDG_DATA_HOME="$HOME/.local/share"
|
export XDG_DATA_HOME="$HOME/.local/share"
|
||||||
|
|
||||||
# Per-Application ENV setting
|
# Per-Application XDG settings
|
||||||
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
|
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
|
||||||
export LESSHISTFILE="-"
|
export LESSHISTFILE="-"
|
||||||
export GTK_RC_FILES="$XDG_CONFIG_HOME/gtk-1.0/gtkrc"
|
export GTK_RC_FILES="$XDG_CONFIG_HOME/gtk-1.0/gtkrc"
|
||||||
|
@ -26,7 +29,6 @@ export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
|
||||||
export KDEHOME="$XDG_CONFIG_HOME/kde"
|
export KDEHOME="$XDG_CONFIG_HOME/kde"
|
||||||
export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv"
|
export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv"
|
||||||
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
||||||
export TS3_CONFIG_DIR="$XDG_CONFIG_HOME/ts3client"
|
|
||||||
export DOCKER_CONFIG="$XDG_CONFIG_HOME/docker"
|
export DOCKER_CONFIG="$XDG_CONFIG_HOME/docker"
|
||||||
export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_CONFIG_HOME/java"
|
export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_CONFIG_HOME/java"
|
||||||
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
||||||
|
@ -55,3 +57,4 @@ alias svn='svn --config-dir "$XDG_CONFIG_HOME"/subversion'
|
||||||
function ngrok(){
|
function ngrok(){
|
||||||
command ngrok $1 -config=$XDG_CONFIG_HOME/ngrok2/ngrok.yml ${@:2}
|
command ngrok $1 -config=$XDG_CONFIG_HOME/ngrok2/ngrok.yml ${@:2}
|
||||||
}
|
}
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue