Let my HOME alone 1/2
This commit is contained in:
parent
2ae37e902e
commit
a83e45df5e
94 changed files with 328 additions and 58 deletions
|
@ -29,4 +29,4 @@ FZF_COMPLETION_OPTS="${FZF_CTRL_T_OPTS}"
|
|||
## FUNCTIONS
|
||||
|
||||
## MISC
|
||||
trysource ~/.gscripts/gprofile
|
||||
trysource ~/.config/gscripts/gprofile
|
||||
|
|
|
@ -13,13 +13,34 @@ export BROWSER=firefox
|
|||
# Program-specific
|
||||
|
||||
[ -z "$SSH_AUTH_SOCK" ] && [ -x "$(command -v ssh-agent)" ] && eval "$(ssh-agent -s)"
|
||||
export GOPATH=$HOME/.cache/go
|
||||
# export JAVA_FONTS=/usr/share/fonts/TTF
|
||||
|
||||
direnv() { # environment variable name, path
|
||||
export "$1"="$2"
|
||||
mkdir -p "$2"
|
||||
}
|
||||
|
||||
export JAVA_FONTS=/usr/share/fonts/TTF # 2019-04-25 Attempt to remove .java/fonts remove if it didn't work
|
||||
# export ANDROID_HOME=/opt/android-sdk
|
||||
# export ARDUINO=/usr/share/arduino
|
||||
# export ARDUINO_DIR=$ARDUINO
|
||||
# export ARDMK_VENDOR=archlinux-arduino
|
||||
|
||||
direnv GOPATH "$HOME/.cache/go"
|
||||
direnv CARGOHOME "$HOME/.cache/cargo" # There are config in there that we can version if one want
|
||||
direnv CCACHE_BASEDIR "$HOME/.cache/ccache"
|
||||
export CCACHE_CONFIGPATH="$HOME/.config/ccache.conf"
|
||||
direnv GNUPGHOME "$HOME/.config/gnupg"
|
||||
export INPUTRC="$HOME/.config/inputrc"
|
||||
export LESSHISTFILE="$HOME/.cache/lesshst"
|
||||
direnv MONO_GAC_PREFIX "$HOME/.cache/mono"
|
||||
export NODE_REPL_HISTORY="$HOME/.cache/node_repl_history"
|
||||
direnv npm_config_cache "$HOME/.cache/npm"
|
||||
direnv PARALLEL_HOME "$HOME/.cache/parallel"
|
||||
|
||||
|
||||
# For programs that think $HOME is a reasonable place to put their junk
|
||||
direnv JUNKHOME "$HOME/.cache/junkhome"
|
||||
|
||||
# Path
|
||||
|
||||
# Function stolen from Arch Linux /etc/profile
|
||||
|
@ -40,7 +61,7 @@ appendpath() {
|
|||
appendpath '/usr/lib/ccache/bin'
|
||||
appendpath "${GOPATH}/bin"
|
||||
appendpath "$HOME/.local/bin"
|
||||
appendpath "$HOME/.scripts"
|
||||
appendpath "$HOME/.config/scripts"
|
||||
|
||||
# If running on termux, load those extra scripts
|
||||
[ -d /data/data/com.termux/ ] && (
|
||||
|
|
|
@ -35,6 +35,24 @@ alias n='urxvtc &'
|
|||
alias x='startx; logout'
|
||||
alias nx='nvidia-xrun; logout'
|
||||
|
||||
# For programs that think $HOME is a reasonable place to put their junk
|
||||
alias adb='HOME=$JUNKHOME adb'
|
||||
alias audacity='HOME=$JUNKHOME audacity'
|
||||
alias binwalk='HOME=$JUNKHOME binwalk' # Should use .config according to the GitHub code though
|
||||
alias cabal='HOME=$JUNKHOME cabal' # TODO May have options but last time I tried it it crashed
|
||||
alias cmake='HOME=$JUNKHOME cmake'
|
||||
alias ddd='HOME=$JUNKHOME ddd'
|
||||
alias ghidra='HOME=$JUNKHOME ghidra'
|
||||
alias itch='HOME=$JUNKHOME itch'
|
||||
# TODO Maybe we can do something about node-gyp
|
||||
|
||||
alias bower='bower --config.storage.packages=~/.cache/bower/packages --config.storage.registry=~/.cache/bower/registry --config.storage.links=~/.cache/bower/links'
|
||||
alias gdb='gdb -x $HOME/.config/gdbinit'
|
||||
alias iftop='iftop -c $HOME/.config/iftoprc'
|
||||
alias lmms='lmms --config $HOME/.config/lmmsrc.xml'
|
||||
|
||||
# TODO ruby's gem when I find a use for it
|
||||
|
||||
# FUNCTIONS
|
||||
trysource() {
|
||||
if [ -f "$1" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue