aboutsummaryrefslogtreecommitdiff
path: root/exports/.exports
blob: 7ad755b618e59081ce4d80698717aaefcd812be9 (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
#!/bin/sh

# PATH
## Set PATH so it includes user's private bin, cargos bin and dotnet if they exist
[ -d "$HOME/bin" ] && export PATH="$HOME/bin:$PATH"
[ -d "$HOME/.local/bin" ] && export PATH="$HOME/.local/bin:$PATH"
[ -d "$HOME/.cargo/bin" ] && export PATH="$HOME/.cargo/bin:$PATH"
[ -d "$HOME/dotnet" ] && export PATH="$HOME/dotnet:$PATH" && export DOTNET_ROOT="$HOME/dotnet"
[ -d "$HOME/.dotnet/tools" ] && export PATH="$HOME/.dotnet/tools:$PATH"

# Colors for BSD tools
export CLICOLOR=1

# Editor
## Some applications expect the full path
if [ -x "$(command -v nvim)" ]; then
    VISUAL="$(command -v nvim)"
else
    VISUAL="$(command -v nano)"
fi
export VISUAL
## Some applications only accept EDITOR
EDITOR="$(command -v nano)"
export EDITOR

# C/C++
if [ -x "$(command -v clang)" ]; then
    export CC="clang"
    export CXX="clang++"
fi

# DOTNET
export DOTNET_CLI_TELEMETRY_OPTOUT=1

# RUST
export RUST_BACKTRACE=full