-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.profile
63 lines (53 loc) · 2.45 KB
/
.profile
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
#!/usr/bin/env bash
# _____ _ ____ ____ ____ ____ _____
# / // \ / _ \/ __\/ _ \/ __\/__ __\
# | __\| | | / \|| \/|| / \|| \/| / \
# | | | |_/\| |-||| __/| \_/|| / | |
# \_/ \____/\_/ \|\_/ \____/\_/\_\ \_/
## Note
#-------------------------------------------------------------------------------
#
# if default shell is bash or zsh, this file will be sourced at login.
#
# if default shell is fish, this file will be parsed in such a way that the
# lines starting with the word 'export' - the environment variables - will be
# translated into fish environment variables. The rest of the file will then be
# ignored.
#
# current shell: zsh
#
# Make sure the following files exist:
#-------------------------------------------------------------------------------
[ -d $HOME/.webapps ] || mkdir $HOME/.webapps
[ -f $HOME/.pythonpath ] || touch $HOME/.pythonpath &> /dev/null
[ -f $HOME/.config/rofi/xresources-colors.rasi ] || touch $HOME/.config/rofi/xresources-colors.rasi &> /dev/null
[ -f $HOME/.Xresources ] || cp $HOME/.config/Xresources/nord $HOME/.Xresources &> /dev/null
[ -f $HOME/.config/Kvantum/kvantum.kvconfig ] || cp $HOME/.config/Kvantum/kvantum.kvconfig.example $HOME/.config/Kvantum/kvantum.kvconfig
## Environment variables
#-------------------------------------------------------------------------------
export BROWSER="firefox"
export BROWSER2="chromium" # fallback browser
export CC="gcc"
export COLORTERM="truecolor"
export CXX="g++"
export DMENU="dmenu" # rofi
export EDITOR="vim"
export FM="vifm"
export FZF_DEFAULT_OPTS="--layout=reverse --height=60% --multi --bind=ctrl-n:down,ctrl-p:up,ctrl-l:preview-down,ctrl-h:preview-up,ctrl-a:select-all --preview-window=right --preview='fzf_preview {} $LINES'"
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
export HISTFILE="$HOME/.bash_history"
export HISTSIZE=100000
export ICAROOT="$HOME/.ica"
export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
export PYTHONSTARTUP="$HOME/.pythonstartup"
export QT_QPA_PLATFORMTHEME="qt5ct"
export READER="zathura"
export SAVEHIST=100000
export SUDO_ASKPASS="$HOME/.local/bin/askpass"
export SUDO_ASKUSERPASS="$HOME/.local/bin/askuserpass"
export TERMINAL="alacritty"
# Python
#-------------------------------------------------------------------------------
# python path from ~/.pythonpath file
# (start line with space to prevent fish config from parsing this line.)
export PYTHONPATH="$(tr '\n' ':' < ~/.pythonpath | head -c -1 | sed 's|~|'$HOME'|g')"