diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-11-06 16:14:41 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-11-06 16:14:41 +0100 |
| commit | 52e39b248922d23c51ab8a0372b92d5d59ef7c80 (patch) | |
| tree | d185dca1e21346e0a4464fce6ce770081e873b67 /exports | |
| parent | bee944c9416fc263d561fc05af66ede395b1016b (diff) | |
Make init script more portable
Diffstat (limited to 'exports')
| -rw-r--r-- | exports/.exports | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/exports/.exports b/exports/.exports index 5bc59e1..7ad755b 100644 --- a/exports/.exports +++ b/exports/.exports @@ -8,6 +8,27 @@ [ -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 |
