From 52e39b248922d23c51ab8a0372b92d5d59ef7c80 Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Sat, 6 Nov 2021 16:14:41 +0100 Subject: Make init script more portable --- exports/.exports | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'exports') 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 -- cgit v1.2.3