forked from denlab/stumpwm-config
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.shrc-env
executable file
·77 lines (55 loc) · 2.36 KB
/
.shrc-env
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
# -*- sh -*-
# for gpg-agent (need to be in .bashrc/.zshrc according to man gpg-agent)
export GPG_TTY=$(tty)
# pager setup
export PAGER="most -s"
export MANPAGER=$PAGER
# emacs as the core editor for all
export EDITOR="emacsclient -nw"
export LEIN_JVM_OPTS="-Xms1G -Xmx1G"
#export LD_LIBRARY_PATH=~/lib:$LD_LIBRARY_PATH
# force the 256 color on the terminal
export TERM=screen-256color
export HISTIGNORE="pass:&"
export HISTIGNORE="swhpass:&"
export ORGTRELLO_HOME="$HOME/repo/public/org-trello"
if [ -z "$DEBSIGN_KEYID" ]; then
[ -f ~/.devscript ] && . ~/.devscript
export DEBFULLNAME
export DEBEMAIL
export DEBSIGN_KEYID
fi
if [ -f /etc/NIXOS ]; then # nixos
export DISTRIB="nixos"
export AUTOJUMP_HOME=$(nix-folder autojump)
export GIT_HOME=$(nix-folder git)
export POWERLINE_HOME=$(nix-folder powerline)
export POWERLINE_CONF=$POWERLINE_HOME/share/tmux/powerline.conf
POWERLINE_COMPLETION=$POWERLINE_HOME/share/zsh/site-contrib/powerline.zsh
[ -f $POWERLINE_COMPLETION ] && . $POWERLINE_COMPLETION
[ -f $AUTOJUMP_HOME/share/autojump/autojump.zsh ] && . $AUTOJUMP_HOME/share/autojump/autojump.zsh
elif [ -f /etc/debian_version ]; then # non nixos env
export DISTRIB="debian"
export AUTOJUMP_HOME="/usr"
export NIX_CONF_DIR=~/.nix/nix.conf
export POWERLINE_HOME=/usr/share/powerline
export POWERLINE_CONF=$POWERLINE_HOME/bindings/tmux/powerline.conf
POWERLINE_COMPLETION=$POWERLINE_HOME/bindings/zsh/powerline.zsh
# nix env (manual install)
[ -f ~/.nix-profile/etc/profile.d/nix.sh ] && . ~/.nix-profile/etc/profile.d/nix.sh
[ -f $POWERLINE_COMPLETION ] && . $POWERLINE_COMPLETION
[ -f $AUTOJUMP_HOME/share/autojump/autojump.zsh ] && . $AUTOJUMP_HOME/share/autojump/autojump.zsh
# Languages setup
# export LC_ALL="en_US.utf8"
# export LANG="en_US.utf8"
# export LANGUAGE="en_US.utf8"
# export LC_MONETARY="fr_FR.utf8"
# export LC_TIME="fr_FR.utf8"
export BROWSER=/usr/bin/qutebrowser
[ -d /etc/alternatives -a "$(readlink /etc/alternatives/www-browser)" != "$BROWSER" ] \
&& sudo ln -nsf $BROWSER /etc/alternatives/www-browser \
&& sudo ln -nsf $BROWSER /etc/alternatives/x-www-browser \
&& sudo ln -nsf $BROWSER /etc/alternatives/gnome-www-browser
# keyboard mapping
[ -f ~/bin/kbd/remap-keyboard.sh ] && . ~/bin/kbd/remap-keyboard.sh
fi