aboutsummaryrefslogtreecommitdiff
path: root/bash/env.sh
blob: a582f4cb129cb0015f1f6989e29a3d100f6650c4 (plain) (blame)
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
#!/usr/bin/env bash

#
# Git Annex
#

export RSYNC_NET_URL=16686@ch-s010.rsync.net
export R=$RSYNC_NET_URL


#
# Perl6
#

export PATH=~/.rakudobrew/bin:$PATH


#
# Haskel Stack
#

export PATH=~/.local/bin:$PATH



#
# Misc
#

export EDITOR=vi
export PATH="$DOTFILES/scripts:$PATH"
export PATH="$HOME/annex/bin:$PATH"
export INPUTRC=~/.inputrc
export CACHE_DIR="$HOME/Nextcloud/cache"
export PATH="$HOME/dev/libre/website/:$PATH"
export PATH="$DOTFILES/bin:$PATH"
export PATH="$HOME/dev/misc/flutter/bin:$PATH"
export PATH="$HOME/dev/libre/songbooks/cli:$PATH"
export PATH="$HOME/dev/misc/ArchiveBox/bin:$PATH"
#export BROWSER="firefox"



#
# Global (not NixOS) NPM
#

export PATH="$HOME/.npm-packages/bin/:$PATH"



#
# Leiningen
#

export LEIN_SUPPRESS_USER_LEVEL_REPO_WARNINGS=1


#
# NixOS
#


isLinux && {
  export SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt
}


#
# Guix
#

# export GUIX_PROFILE="$HOME/.guix-profile/etc/profile"
# isLinux && {
#   source "$GUIX_PROFILE"
# }
export PATH="$HOME/.guix-profile/bin${PATH:+:}$PATH"
export PATH="$HOME/.config/guix/current/bin${PATH:+:}$PATH"
export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale" # after running guix package -i glibc-utf8-locales
# https://git.savannah.gnu.org/cgit/guix.git/tree/doc/guix.texi?id=cd6ae1cee95644b9aa712a7192bc9677a04c146b#n1287
export NIX_BUILD_CORES=0


#
# Go
#

export GOPATH="$HOME/dev/go"
export PATH="$GOPATH/bin:$PATH"

#
# Rust
#

rustc --print sysroot &> /dev/null || (rustup install stable && rustup default stable)
export PATH="$HOME/.cargo/bin:$PATH"
RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
export RUST_SRC_PATH