2022-04-03 22:46:00 +02:00
|
|
|
# ~/.zshenv
|
|
|
|
|
2022-08-28 21:39:22 +02:00
|
|
|
export GOPATH="$HOME/go"
|
2022-05-02 23:43:39 +02:00
|
|
|
export GOBIN="$GOPATH/bin"
|
|
|
|
|
2022-04-03 22:46:00 +02:00
|
|
|
export ANDROID_SDK_ROOT="$HOME/utils/Android/Sdk"
|
|
|
|
export ANDROID_SDK_PATH=$ANDROID_SDK_ROOT
|
|
|
|
export ANDROID_NDK_PATH=$ANDROID_SDK_ROOT/ndk-bundle
|
|
|
|
export ANDROID_NDK_HOME=$ANDROID_NDK_PATH
|
|
|
|
export AndroidSdkPath=$ANDROID_SDK_ROOT
|
|
|
|
export AndroidNdkPath=$ANDROID_NDK_PATH
|
|
|
|
|
2022-09-07 21:59:34 +02:00
|
|
|
export CCACHE_NODISABLE="true"
|
2022-04-03 22:46:00 +02:00
|
|
|
|
2023-08-03 11:50:06 +02:00
|
|
|
# https://github.com/nix-community/home-manager/issues/4019
|
|
|
|
export SKIP_SANITY_CHECKS=1
|
|
|
|
|
2022-08-29 00:30:29 +02:00
|
|
|
# https://github.com/NixOS/nix/issues/2033
|
|
|
|
# https://discourse.nixos.org/t/where-is-nix-path-supposed-to-be-set/16434/8
|
|
|
|
export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/vis/channels${NIX_PATH:+:$NIX_PATH}
|
|
|
|
|
2022-05-02 23:45:36 +02:00
|
|
|
[ -z "$IN_NIX_SHELL" ] && export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
|
2022-04-03 22:46:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
add_to_path() {
|
|
|
|
local p=$1
|
|
|
|
if [[ ! "$PATH" == *"$p"* ]]; then
|
|
|
|
export PATH="$p:$PATH"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2023-08-18 17:09:44 +02:00
|
|
|
local __paths=(
|
|
|
|
"/usr/lib64/ccache"
|
|
|
|
"$ANDROID_SDK_ROOT/platform-tools"
|
|
|
|
"$ANDROID_SDK_ROOT/cmdline-tools/latest/bin"
|
|
|
|
"$ANDROID_SDK_ROOT/tools"
|
|
|
|
"$ANDROID_SDK_ROOT/tools/bin"
|
|
|
|
"$HOME/.local/share/JetBrains/Toolbox/bin"
|
|
|
|
"$HOME/.npm-packages/bin"
|
|
|
|
"/var/lib/flatpak/exports/bin"
|
|
|
|
"$HOME/.local/share/flatpak/exports/bin"
|
|
|
|
"/opt/metasploit-framework/bin"
|
|
|
|
"$HOME/.cargo/bin"
|
|
|
|
"$GOPATH/bin"
|
|
|
|
"$HOME/.arkade/bin"
|
|
|
|
"$HOME/.asdf/bin"
|
|
|
|
"$HOME/.asdf/shims"
|
|
|
|
"$HOME/.local/bin"
|
|
|
|
"$HOME/utils/bin"
|
|
|
|
)
|
|
|
|
|
|
|
|
for p in $__paths[@]; do
|
|
|
|
add_to_path $p
|
|
|
|
done
|
|
|
|
|
|
|
|
unset __paths
|