dotfiles

My personal dotfiles 💠️

exports.sh (4262B)

      1 #!/bin/sh
      2 #                             _             _     
      3 #                            | |           | |    
      4 #   _____  ___ __   ___  _ __| |_ ___   ___| |__  
      5 #  / _ \ \/ / '_ \ / _ \| '__| __/ __| / __| '_ \ 
      6 # |  __/>  <| |_) | (_) | |  | |_\__ \_\__ \ | | |
      7 #  \___/_/\_\ .__/ \___/|_|   \__|___(_)___/_| |_|
      8 #           | |                                   
      9 #           |_|                                   
     10 #
     11 # Pablo (C) 2021
     12 # 
     13 # File that contains all environmet variables I use. This can be sourced from,
     14 # bash, fish, sh, zsh, etc.
     15 
     16 # Configre XDG stuff
     17 export XDG_CONFIG_HOME="$HOME/.config"
     18 export XDG_CACHE_HOME="$HOME/.cache"
     19 export XDG_DATA_HOME="$HOME/.local/share"
     20 
     21 # Configure the MANPATH variable
     22 export MANPATH="/usr/share/man"
     23 export MANPATH="$MANPATH:/usr/local/man"
     24 export MANPATH="$MANPATH:/usr/share/man"
     25 export MANPATH="$MANPATH:$XDG_DATA_HOME/man"
     26 export MANPATH="$MANPATH:$XDG_DATA_HOME/fzf/man"
     27 
     28 export DOTFILES_REPO="$XDG_DATA_HOME/dotfiles-repo"
     29 export DOTFILES_LIST="$XDG_CONFIG_HOME/dotfiles.list"
     30 
     31 # =========================== Programming Languages ==========================
     32 
     33 # C
     34 export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
     35 
     36 # Rust
     37 export CARGO_HOME="$XDG_DATA_HOME/cargo"
     38 export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
     39 
     40 # OCaml
     41 export OPAMROOT="$XDG_DATA_HOME/opam"
     42 
     43 # Ruby
     44 export GEM_HOME="$XDG_DATA_HOME/gem"
     45 export GEM_SPEC_CACHE="$XDG_CACHE_HOME/gem"
     46 export BUNDLE_USER_CONFIG="$XDG_CONFIG_HOME/bundle"
     47 export BUNDLE_USER_CACHE="$XDG_CACHE_HOME/bundle"
     48 export BUNDLE_USER_PLUGIN="$XDG_DATA_HOME/bundle"
     49 export DEBIAN_DISABLE_RUBYGEMS_INTEGRATION="true"
     50 
     51 # Libraries for the Go programming language
     52 export GOPATH="$XDG_DATA_HOME/go"
     53 
     54 # Racket
     55 export PLTUSERHOME="$XDG_DATA_HOME/racket"
     56 
     57 # JS
     58 export DENO_INSTALL="$XDG_DATA_HOME/deno"
     59 export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
     60 export NODE_REPL_HISTORY="$XDG_DATA_HOME"/node_repl_history
     61 
     62 # Wasmtime
     63 export WASMTIME_HOME="$XDG_DATA_HOME/wasmtime"
     64 
     65 # Julia
     66 export JULIA_DEPOT_PATH="$XDG_DATA_HOME/julia:$JULIA_DEPOT_PATH"
     67 export JULIA_HISTORY="$XDG_CONFIG_HOME/julia/history"
     68 
     69 # SageMath
     70 export DOT_SAGE="$XDG_CONFIG_HOME/sage"
     71 
     72 # Elm
     73 export ELM_HOME="$XDG_CACHE_HOME/elm"
     74 
     75 # ================================ Programs ==================================
     76 
     77 # Bash history
     78 export HISTFILE="$XDG_DATA_HOME/bash/history"
     79 
     80 # GTK 2
     81 export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
     82 
     83 # gpg
     84 export GNUPGHOME="$XDG_DATA_HOME/gnupg"
     85 
     86 # readline
     87 export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
     88 
     89 # less history cache
     90 export LESSKEY="$XDG_CONFIG_HOME/less/lesskey"
     91 export LESSHISTFILE="$XDG_CACHE_HOME/less/history"
     92 
     93 # wget
     94 export WGETRC="$XDG_CONFIG_HOME/wgetrc"
     95 
     96 # TeXLive
     97 export TEXMFHOME="$XDG_DATA_HOME/texmf"
     98 export TEXMFVAR="$XDG_CACHE_HOME/texlive/texmf-var"
     99 export TEXMFCONFIG="$XDG_CONFIG_HOME/texlive/texmf-config"
    100 
    101 # notmuch
    102 export NOTMUCH_CONFIG="$XDG_CONFIG_HOME"/notmuch/notmuchrc
    103 export NMBGIT="$XDG_DATA_HOME"/notmuch/nmbug
    104 
    105 # pass(1)
    106 export PASSWORD_STORE_DIR="$XDG_CONFIG_HOME"/password-store
    107 
    108 # Jupyter notebook
    109 export IPYTHONDIR="$XDG_CONFIG_HOME"/jupyter
    110 export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME"/jupyter
    111 
    112 # mplayer(1)
    113 export MPLAYER_HOME="$XDG_CONFIG_HOME"/mplayer
    114 
    115 # aspell
    116 export ASPELL_CONF="home-dir $XDG_CONFIG_HOME/aspell/"
    117 
    118 # isync
    119 export MBSYNCRC="$XDG_CONFIG_HOME"/isync/mbsyncrc
    120 
    121 # cowsay cowthink
    122 export COWPATH="/usr/local/share/cows:/usr/share/cows:$XDG_DATA_HOME/cows"
    123 
    124 # Configure the PATH variable
    125 export PATH="/usr/local/sbin" 
    126 export PATH="$PATH:/usr/local/bin" 
    127 export PATH="$PATH:/usr/sbin" 
    128 export PATH="$PATH:/usr/bin" 
    129 export PATH="$PATH:/sbin" 
    130 export PATH="$PATH:/bin" 
    131 export PATH="$PATH:/usr/lib/gnupg/" 
    132 export PATH="$PATH:/usr/lib/gnupg2/" 
    133 export PATH="$PATH:$HOME/.local/bin" 
    134 export PATH="$PATH:/usr/bin/vendor_perl" 
    135 export PATH="$PATH:$CARGO_HOME/bin" 
    136 export PATH="$PATH:$GOPATH/bin" 
    137 export PATH="$PATH:$DENO_INSTALL/bin" 
    138 export PATH="$PATH:$XDG_DATA_HOME/npm/bin" 
    139 export PATH="$PATH:$XDG_DATA_HOME/fzf/bin" 
    140 export PATH="$PATH:$HOME/.cabal/bin" 
    141 export PATH="$PATH:$GEM_HOME/ruby/3.0.0/bin"
    142 
    143 # Default programs
    144 export TERMINAL="alacritty"
    145 export EDITOR="nvim"
    146 export GIT_EDITOR="$EDITOR"
    147 export VISUAL="$EDITOR"
    148 export PAGER="less"
    149 export BROWSER="firefox"
    150