dotfiles

beau's configuration files
git clone https://git.beauhilton.com/dotfiles.git
Log | Files | Refs | README

profile (2516B)


      1 #!/usr/bin/env sh
      2 
      3 export EDITOR="nvim"
      4 export TERMINAL="kitty"
      5 export FILE="nnn"
      6 export READER="zathura"
      7 export BROWSER="chromium"
      8 
      9 export NNN_FIFO='/tmp/nnn.fifo'
     10 export NNN_PLUG='p:preview-tui'
     11 export SPLIT='v'
     12 
     13 # Adds ruby to path
     14 PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin"
     15 
     16 # Adds `~/.local/bin/` and all subdirectories to $PATH
     17 export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
     18 
     19 export XDG_CONFIG_HOME="$HOME/.config"
     20 export XDG_DATA_HOME="$HOME/.local/share"
     21 export XDG_CACHE_HOME="$HOME/.cache"
     22 export VIMWIKI_HOME="$HOME/repos/vimwiki/index.md"
     23 
     24 export CONDARC="${XDG_CONFIG_HOME:-$HOME/.config}/conda/.condarc"
     25 export IPYTHONDIR="${XDG_CONFIG_HOME:-$HOME/.config}/jupyter"
     26 export JUPYTER_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/jupyter"
     27 export R_ENVIRON_USER="${XDG_CONFIG_HOME:-$HOME/.config}/R/Renviron"
     28 
     29 export CARGO_HOME="$XDG_DATA_HOME"/cargo
     30 export GEM_HOME="$XDG_DATA_HOME"/gem
     31 export GEM_SPEC_CACHE="$XDG_CACHE_HOME"/gem
     32 export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
     33 
     34 export LESSHISTFILE="-"
     35 export SUDO_ASKPASS="$HOME/.local/bin/tools/dmenupass"
     36 export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/notmuch-config"
     37 export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc-2.0"
     38 export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
     39 export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc"
     40 export INPUTRC="${XDG_CONFIG_HOME:-$HOME/.config}/inputrc"
     41 export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/password-store"
     42 export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
     43 export MAILCAPS="$XDG_CONFIG_HOME"/tuir/mailcap
     44 
     45 export GPG_TTY=$(tty)
     46 export GPG_AGENT_INFO=""
     47 
     48 # less/man colors
     49 export LESS=-R
     50 export LESS_TERMCAP_mb="$(printf '%b' '')"; a="${a%_}"
     51 export LESS_TERMCAP_md="$(printf '%b' '')"; a="${a%_}"
     52 export LESS_TERMCAP_me="$(printf '%b' '')"; a="${a%_}"
     53 export LESS_TERMCAP_so="$(printf '%b' '')"; a="${a%_}"
     54 export LESS_TERMCAP_se="$(printf '%b' '')"; a="${a%_}"
     55 export LESS_TERMCAP_us="$(printf '%b' '')"; a="${a%_}"
     56 export LESS_TERMCAP_ue="$(printf '%b' '')"; a="${a%_}"
     57 
     58 mpd >/dev/null 2>&1 &
     59 
     60 [ ! -f ~/.config/shortcutrc ] && shortcuts >/dev/null 2>&1
     61 
     62 # Start graphical server on tty1 if not already running.
     63 [ "$(tty)" = "/dev/tty1" ] && ! ps -e | grep -qw Xorg && exec startx "$XDG_CONFIG_HOME/X11/xinitrc" --
     64 
     65 # Switch escape and caps if tty:
     66 sudo -n loadkeys ~/.local/bin/ttymaps.kmap 2>/dev/null
     67 
     68 gpg-connect-agent updatestartuptty /bye >/dev/null