blob: 9c8f1d508285982f8c7ae8c930eba22518db6e7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#!/bin/sh
##--Environment variables--##
## Modified env vars.
export PATH="$PATH:$(du -L "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
## Default programs.
export EDITOR="nvim"
export TERMINAL="alacritty"
export BROWSER="firefox"
export READER="zathura"
export FILE="ranger"
export STATUSBAR="i3blocks"
export MUSIC="spotify"
export MAILMGR="thunderbird"
export MSGCHAT="telegram-desktop"
export SSMGR="flameshot"
## ~/ cleanup.
export ZDOTDIR="$HOME/.config/zsh"
## Ranger.
export RANGER_LOAD_DEFAULT_RC=FALSE
## CUDA.
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/cuda/lib64"
## Tensorflow.
export TF_CPP_MIN_LOG_LEVEL="0"
# 0 = all messages are logged (default behavior)
# 1 = INFO messages are not printed
# 2 = INFO and WARNING messages are not printed
# 3 = INFO, WARNING, and ERROR messages are not printed
## Ruby
if command -v ruby >/dev/null 2>&1; then
export PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin"
fi
## Jupyter lab.
export JUPYTER_CONFIG_DIR=$HOME/.config/jupyter
export JUPYTERLAB_DIR=$HOME/.local/share/jupyter/lab
## iPython.
export IPYTHONDIR=$HOME/.config/ipython
## TexLive.
export TEXMFDIST=/usr/share/texmf-dist
export TEXMFHOME=$HOME/.local/share/texmf
## qBittorrent.
export QT_AUTO_SCREEN_SCALE_FACTOR=0
##--Start X automatically--##
# Following: https://wiki.archlinux.org/index.php/Xinit#Autostart_X_at_login
# More on autologin and autostarting x without a DM:
# https://forums.bunsenlabs.org/viewtopic.php?id=5544
# Also LS's config could be important here:
# ttps://github.com/LukeSmithxyz/voidrice/blob/master/.config/shell/profile
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
exec startx
fi
|