-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_bash_profile
175 lines (128 loc) · 4.24 KB
/
dot_bash_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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
WAYLAND_DISPLAY=wayland-1
export WAYLAND_DISPLAY
XDG_CURRENT_DESKTOP=sway
export XDG_CURRENT_DESKTOP
XDG_SESSION_TYPE=wayland
export XDG_SESSION_TYPE
XDG_SESSION_DESKTOP=sway
export XDG_SESSION_DESKTOP
# Setups system and user profiles and related variables
# /etc/profile will be sourced by bash automatically
# Setups home environment profile
if [[ $(tty) == "/dev/tty8" ]]
then
if [[ -f ~/.profile ]]
then
source ~/.profile
fi
fi
export USER=oleg
export LC_TIME=en_GB.UTF-8
export LANG=en_US.UTF-8
export LOCALE_ARCHIVE="$(readlink ~/.nix-profile/lib/locale)/locale-archive"
export MANPATH=$MANPATH:$HOME/.nix-profile/share/man
export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
export CHICKEN_REPOSITORY=~/.eggs/lib/chicken/8
export CHICKEN_DOC_REPOSITORY=/home/natsu/.eggs/share/chicken-doc
export EDITOR='emacsclient -nw -c'
export BROWSER='firefox'
export MANWIDTH=80
export INFOPATH="/home/oleg/src/git.savannah.gnu.org/git/guix/doc${INFOPATH:+:}$INFOPATH"
export GUILE_WARN_DEPRECATED=no
# TODO: readlink could fail to enter `guix environment`
# alias wi-pure-bash="env -i $(readlink $(which bash)) --noprofile --norc"
# TODO: Escape window names with asterisks.
# wi-x-resize-window ()
# {
# window_name=$(xwininfo | grep 'Window id' | awk '{ print $5 }')
# xdotool search --name "$window_name" windowsize $1 $2
# }
# Fix mouse wheel in gtk3
# https://github.com/stumpwm/stumpwm/wiki/FAQ
export GDK_CORE_DEVICE_EVENTS=1
export QT_QPA_PLATFORMTHEME=gtk2
export GUILE_LOAD_PATH="${HOME}/.config:${GUILE_LOAD_PATH}"
RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/ripgreprc"
export RIPGREP_CONFIG_PATH
SSHRC_BECOME=yes
export SSHRC_BECOME
QEMU_WINDOWS10_DISK=/dev/disk/by-id/wwn-0x5e83a97ad8a4b20a
export QEMU_WINDOWS10_DISK
GRADLE_HOME=/opt/gradle
export GRADLE_HOME
PYTHONSTARTUP=$HOME/.pythonrc
export PYTHONSTARTUP
TMUXIFIER_LAYOUT_PATH="$HOME/.tmuxifier-layouts"
export TMUXIFIER_LAYOUT_PATH
if [ -d "/run/current-system" ]
then
:
else
source "$HOME/.guix-profile/etc/profile"
if [[ -f "$GUIX_PROFILE/etc/profile" ]]; then
source "$GUIX_PROFILE/etc/profile"
fi
BROWSER='firefox'
export BROWSER
GUILE_WARN_DEPRECATED=no
export GUILE_WARN_DEPRECATED
GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
export GUIX_LOCPATH
GUIX_PROFILE="$HOME/.guix-profile"
export GUIX_PROFILE
PATH="$HOME/.config/guix/current/bin${PATH:+:}$PATH"
export PATH
PATH=$HOME/bin:$HOME/.npm-global/bin:$PATH
export PATH
INFOPATH="/home/oleg/src/git.savannah.gnu.org/git/guix/doc${INFOPATH:+:}$INFOPATH"
export INFOPATH
# Fix mouse wheel in gtk3
# https://github.com/stumpwm/stumpwm/wiki/FAQ
export GDK_CORE_DEVICE_EVENTS=1
XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
#XDG_CURRENT_DESKTOP=X-Cinnamon
XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/
#XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/oleg
#XDG_RUNTIME_DIR=/run/user/1001
#XDG_SEAT=seat0
#XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
#XDG_SESSION_DESKTOP=cinnamon
#XDG_SESSION_ID=c18
#XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session8
#XDG_SESSION_TYPE=x11
#XDG_VTNR=7
SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs"
export SSL_CERT_DIR
SSL_CERT_FILE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt"
export SSL_CERT_FILE
GIT_SSL_CAINFO="$SSL_CERT_FILE"
export GIT_SSL_CAINFO
CURL_CA_BUNDLE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt"
export CURL_CA_BUNDLE
fi
if [ -e "$HOME/.nix-profile/lib/locale" ]
then
LOCALE_ARCHIVE="$(readlink "$HOME/.nix-profile/lib/locale")/locale-archive"
export LOCALE_ARCHIVE
fi
if [ -d "$HOME/.nix-profile/share/man" ]
then
MANPATH="$MANPATH:$HOME/.nix-profile/share/man"
export MANPATH
fi
EDITOR='emacsclient -nw -c'
export EDITOR
MANWIDTH=80
export MANWIDTH
PERL5LIB="/home/oleg/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"
export PERL5LIB
PERL_LOCAL_LIB_ROOT="/home/oleg/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"
export PERL_LOCAL_LIB_ROOT
PERL_MB_OPT="--install_base \"/home/oleg/perl5\""
export PERL_MB_OPT
PERL_MM_OPT="INSTALL_BASE=/home/oleg/perl5"
export PERL_MM_OPT
if [[ -f ${HOME}/.bashrc ]]
then
. "${HOME}/.bashrc"
fi