XDG Cleanup
This commit is contained in:
parent
970806080d
commit
dab6dc3158
5 changed files with 38 additions and 27 deletions
0
.config/ipython/.gitignore
vendored
Normal file
0
.config/ipython/.gitignore
vendored
Normal file
4
.config/npm/npmrc
Normal file
4
.config/npm/npmrc
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
prefix=${XDG_DATA_HOME}/npm
|
||||||
|
cache=${XDG_CACHE_HOME}/npm
|
||||||
|
init-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js
|
||||||
|
|
||||||
|
|
@ -1,19 +1,3 @@
|
||||||
# ZSH Configurations
|
|
||||||
|
|
||||||
unsetopt autocd # Change directory just by typing its name (hurts performance)
|
|
||||||
setopt interactivecomments # Allow comments in interactive mode
|
|
||||||
setopt complete_aliases # Allows auto-completion with aliases
|
|
||||||
setopt magicequalsubst # Enable filename expansion for arguments of the form ‘anything=expression’
|
|
||||||
setopt nonomatch # Hide error message if there is no match for the pattern
|
|
||||||
setopt notify # Report the status of background jobs immediately
|
|
||||||
setopt numericglobsort # Sort filenames numerically when it makes sense
|
|
||||||
setopt promptsubst # Enable command substitution in prompt
|
|
||||||
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
|
|
||||||
setopt hist_ignore_dups # ignore duplicated commands history list
|
|
||||||
setopt hist_ignore_space # ignore commands that start with space
|
|
||||||
setopt hist_verify # show command with history expansion to user before running it
|
|
||||||
unsetopt ksharrays # 0-indexing arrays breaks highlighting
|
|
||||||
|
|
||||||
# Start gpg agent
|
# Start gpg agent
|
||||||
unset SSH_AGENT_PID
|
unset SSH_AGENT_PID
|
||||||
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||||
|
|
|
||||||
|
|
@ -19,26 +19,34 @@ export QT_IM_MODULE='fcitx'
|
||||||
export SDL_IM_MODULE='fcitx'
|
export SDL_IM_MODULE='fcitx'
|
||||||
export XMODIFIERS='@im=fcitx'
|
export XMODIFIERS='@im=fcitx'
|
||||||
|
|
||||||
# Spring cleaning
|
# Defining XDG dirs
|
||||||
|
export XDG_CACHE_HOME="$HOME/.cache"
|
||||||
export XDG_CONFIG_HOME="$HOME/.config"
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
export XDG_DATA_HOME="$HOME/.local/share"
|
export XDG_DATA_HOME="$HOME/.local/share"
|
||||||
export XDG_CACHE_HOME="$HOME/.cache"
|
export XDG_RUNTIME_DIR="/run/user/$UID"
|
||||||
export XDG_STATE_HOME="$HOME/.local/state"
|
export XDG_STATE_HOME="$HOME/.local/state"
|
||||||
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
|
||||||
export EMACS_INIT_FILE="$XDG_CONFIG_HOME/emacs"
|
# Spring cleaning
|
||||||
export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
|
|
||||||
export GIT_CONFIG="$XDG_CONFIG_HOME/git/config"
|
|
||||||
export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
|
|
||||||
export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc"
|
|
||||||
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
|
|
||||||
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
||||||
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
|
export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv"
|
||||||
|
export EMACS_INIT_FILE="$XDG_CONFIG_HOME/emacs"
|
||||||
|
export GIT_CONFIG="$XDG_CONFIG_HOME/git/config"
|
||||||
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
||||||
|
export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
|
||||||
|
export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter"
|
||||||
|
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
||||||
|
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
|
||||||
|
export PYTHONPYCACHEPREFIX="$XDG_CACHE_HOME/python"
|
||||||
|
export PYTHONUSERBASE="$XDG_DATA_HOME/python"
|
||||||
|
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
|
||||||
export SSB_HOME="$XDG_DATA_HOME/zoom"
|
export SSB_HOME="$XDG_DATA_HOME/zoom"
|
||||||
export TEXMFVAR="$XDG_CACHE_HOME/texlive/texmf-var"
|
export TEXMFVAR="$XDG_CACHE_HOME/texlive/texmf-var"
|
||||||
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
|
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
|
||||||
|
|
||||||
export VIMINIT='let $MYVIMRC = !has("nvim") ? "$XDG_CONFIG_HOME/vim/vimrc" : "$XDG_CONFIG_HOME/nvim/init.lua" | so $MYVIMRC'
|
export VIMINIT='let $MYVIMRC = !has("nvim") ? "$XDG_CONFIG_HOME/vim/vimrc" : "$XDG_CONFIG_HOME/nvim/init.lua" | so $MYVIMRC'
|
||||||
|
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
|
||||||
|
export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
|
||||||
|
export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc"
|
||||||
|
|
||||||
export JAVA_HOME="/usr/lib/jvm/default/"
|
export JAVA_HOME="/usr/lib/jvm/default/"
|
||||||
export XSECURELOCK_PASSWORD_PROMPT='kaomoji'
|
export XSECURELOCK_PASSWORD_PROMPT='kaomoji'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,20 @@
|
||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
|
|
||||||
|
# ZSH Configurations
|
||||||
|
unsetopt autocd # Change directory just by typing its name (hurts performance)
|
||||||
|
setopt interactivecomments # Allow comments in interactive mode
|
||||||
|
setopt complete_aliases # Allows auto-completion with aliases
|
||||||
|
setopt magicequalsubst # Enable filename expansion for arguments of the form ‘anything=expression’
|
||||||
|
setopt nonomatch # Hide error message if there is no match for the pattern
|
||||||
|
setopt notify # Report the status of background jobs immediately
|
||||||
|
setopt numericglobsort # Sort filenames numerically when it makes sense
|
||||||
|
setopt promptsubst # Enable command substitution in prompt
|
||||||
|
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
|
||||||
|
setopt hist_ignore_dups # ignore duplicated commands history list
|
||||||
|
setopt hist_ignore_space # ignore commands that start with space
|
||||||
|
setopt hist_verify # show command with history expansion to user before running it
|
||||||
|
unsetopt ksharrays # 0-indexing arrays breaks highlighting
|
||||||
|
|
||||||
## ALIASES ##
|
## ALIASES ##
|
||||||
|
|
||||||
# The rice repo
|
# The rice repo
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue