Dotfiles for different machines on different branches.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.4 KiB

  1. #!/bin/sh
  2. # Profile file. Runs on login.
  3. # Adds `~/.local/bin` and all subdirectories to $PATH
  4. export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
  5. export EDITOR="nvim"
  6. export TERMINAL="st"
  7. export BROWSER="firefox"
  8. export READER="zathura"
  9. export FILE="ranger"
  10. export SUDO_ASKPASS="$HOME/.local/bin/tools/dmenupass"
  11. export NOTMUCH_CONFIG="$HOME/.config/notmuch-config"
  12. export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0"
  13. export RTV_BROWSER="firefox"
  14. export QT_QPA_PLATFORMTHEME="qt5ct"
  15. export ZDOTDIR="$HOME/.config/zsh"
  16. export VIDEO="mpv"
  17. export AUDIO="mpv"
  18. export TABLE="sc-im"
  19. export IMAGE="sxiv"
  20. export LATEX="code"
  21. export MAIL="thunderbird"
  22. # less/man colors
  23. export LESS=-R
  24. export LESS_TERMCAP_mb="$(printf '%b' '')"; a="${a%_}"
  25. export LESS_TERMCAP_md="$(printf '%b' '')"; a="${a%_}"
  26. export LESS_TERMCAP_me="$(printf '%b' '')"; a="${a%_}"
  27. export LESS_TERMCAP_so="$(printf '%b' '')"; a="${a%_}"
  28. export LESS_TERMCAP_se="$(printf '%b' '')"; a="${a%_}"
  29. export LESS_TERMCAP_us="$(printf '%b' '')"; a="${a%_}"
  30. export LESS_TERMCAP_ue="$(printf '%b' '')"; a="${a%_}"
  31. echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "$HOME/.bashrc"
  32. echo "$0" | grep "zsh$" >/dev/null && [ -f $ZDOTDIR/.zshrc ] && source "$ZDOTDIR/.zshrc"
  33. # Start graphical server if i3 not already running.
  34. [ "$(tty)" = "/dev/tty1" ] && ! pgrep -x i3 >/dev/null && exec startx