.profile 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # -*- mode: sh; -*-
  2. export XDG_CONFIG_HOME="${HOME}/.config"
  3. export LS_COLORS="${LS_COLORS:-rs=0:di=01;36:ln=target:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:}"
  4. # RC directory, no slash at end!
  5. export SHELL_DIRECTORY="${XDG_CONFIG_HOME}/shell"
  6. export RC_DIRECTORY="${SHELL_DIRECTORY}/rc.d"
  7. # Common history settings for shells
  8. export HISTFILE="${SHELL_DIRECTORY}/history"
  9. export SAVEHIST=30000
  10. export HISTSIZE=30000
  11. # custom variables
  12. export SCREENSHOTS="${HOME}/Pictures/Screenshots"
  13. export RECORDINGS="${HOME}/Documents/recordings"
  14. export SCRIPTS="${HOME}/Scripts"
  15. export WALLPAPERS="${HOME}/Pictures/wallpapers"
  16. export TRASH="${HOME}/.local/share/Trash/files"
  17. export BACKUPS="/media/${USER}/crucial_nvme/Backups"
  18. export DOTFILES="${XDG_CONFIG_HOME}/dots"
  19. export EMACS_CONFIG_DIR="${XDG_CONFIG_HOME}/emacs"
  20. export VISUAL="emacsclient -c"
  21. export EDITOR="emacsclient -c"
  22. export SUDO_EDITOR="${HOME}/.local/emacs/bin/emacsclient -c" # absolute path
  23. export ALTERNATE_EDITOR="nvim" # alternative editor when emacs is off
  24. export TERMINAL="kitty"
  25. export BROWSER="firefox"
  26. export READER="zathura"
  27. export OPEN="xdg-open"
  28. export IMAGE="sxiv"
  29. export VIDEO="mpv"
  30. export PAGER="less"
  31. # for systemd
  32. export SYSTEMD_PAGER="" # not using pager by default
  33. export ANSIBLE_NAVIGATOR_CONFIG="${XDG_CONFIG_HOME}/ansible/ansible-navigator.yml"
  34. # for borgbackup
  35. export BORG_REPO="$BACKUPS"
  36. export BORG_PASSCOMMAND="pass misc/borg"
  37. # for pass
  38. export PASSWORD_STORE_DIR="${XDG_CONFIG_HOME}/password-store"
  39. export PASSWORD_STORE_ENABLE_EXTENSIONS="true"
  40. # for lsyncd
  41. export LSYNCD_OPTIONS="${XDG_CONFIG_HOME}/lsyncd/lsyncd.conf"
  42. # for fzf
  43. FZF_DEFAULT_COMMAND="locate \$(pwd)"; export FZF_DEFAULT_COMMAND
  44. export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
  45. # for less
  46. LESS="-RXi" ; export LESS
  47. LESS_TERMCAP_mb="$(printf '%b' '')" ; export LESS_TERMCAP_mb
  48. LESS_TERMCAP_md="$(printf '%b' '')" ; export LESS_TERMCAP_md
  49. LESS_TERMCAP_me="$(printf '%b' '')" ; export LESS_TERMCAP_me
  50. LESS_TERMCAP_so="$(printf '%b' '')" ; export LESS_TERMCAP_so
  51. LESS_TERMCAP_se="$(printf '%b' '')" ; export LESS_TERMCAP_se
  52. LESS_TERMCAP_us="$(printf '%b' '')" ; export LESS_TERMCAP_us
  53. LESS_TERMCAP_ue="$(printf '%b' '')" ; export LESS_TERMCAP_ue
  54. # for qutebrowser, and qt apps in general (i think)
  55. export QTWEBENGINE_CHROMIUM_FLAGS="--blink-settings=darkMode=4,darkModeImagePolicy=2"
  56. # for GO / programming specific variables
  57. export GOBIN="/opt/go/bin"
  58. export PYENV_ROOT="/opt/pyenv"
  59. # for nnn
  60. export NNN_SEL="${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection}"
  61. export NNN_TRASH=1
  62. export NNN_FIFO="/tmp/nnn.fifo"
  63. GPG_TTY="$(tty)"; export GPG_TTY # idk, dont remember
  64. SUDO_ASKPASS="$(which ssh-askpass)"; export SUDO_ASKPASS # for sudo -A
  65. # adding to paths
  66. PATH="${PATH}:$(find "$HOME" /opt -maxdepth 2 -type d -name bin -printf "%p:")"
  67. export PATH
  68. KUBECONFIG="$(find "${HOME}/Repos/work/k8s" -name rke2.yaml -printf "%p:")"
  69. export KUBECONFIG