Do not run expensive env initializations for non-interactive shells
This commit is contained in:
parent
87ced67ef2
commit
03e0518f6f
4 changed files with 13 additions and 1 deletions
1
.zshenv
Symbolic link
1
.zshenv
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
zshenv
|
||||||
2
env/50_rust.zsh
vendored
2
env/50_rust.zsh
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
export RUSTUP_HOME="${XDG_DATA_HOME}/rustup"
|
export RUSTUP_HOME="${XDG_DATA_HOME}/rustup"
|
||||||
export CARGO_HOME="${XDG_DATA_HOME}/cargo"
|
export CARGO_HOME="${XDG_DATA_HOME}/cargo"
|
||||||
export PATH="${CARGO_HOME}/bin:${PATH}"
|
export PATH="${CARGO_HOME}/bin:${PATH}"
|
||||||
if which rustup &>/dev/null && [[ -n $(rustup show active-toolchain) ]]; then
|
if [[ $- == *i* ]] && which rustup &>/dev/null && [[ -n $(rustup show active-toolchain) ]]; then
|
||||||
export RUST_SRC_PATH=$(rustup run stable rustc --print sysroot)/lib/rustlib/src/rust/src
|
export RUST_SRC_PATH=$(rustup run stable rustc --print sysroot)/lib/rustlib/src/rust/src
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
9
env/50_scala.zsh
vendored
9
env/50_scala.zsh
vendored
|
|
@ -1 +1,10 @@
|
||||||
|
=======
|
||||||
|
[[ $- == *i* ]] || return 0
|
||||||
|
|
||||||
|
if command -v java &> /dev/null && java -version 2>&1 | grep -q GraalVM; then
|
||||||
|
export SBT_OPTS="-Xmx10G"
|
||||||
|
else
|
||||||
|
export SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=10G -Xmx10G"
|
||||||
|
fi
|
||||||
|
>>>>>>> 4f34586 (Do not run expensive env initializations for non-interactive shells)
|
||||||
export SBT_OPTS="-Xmx10G"
|
export SBT_OPTS="-Xmx10G"
|
||||||
|
|
|
||||||
2
env/90_podman-socket.zsh
vendored
2
env/90_podman-socket.zsh
vendored
|
|
@ -1,3 +1,5 @@
|
||||||
|
[[ $- == *i* ]] || return 0
|
||||||
|
|
||||||
if command -v podman &>/dev/null; then
|
if command -v podman &>/dev/null; then
|
||||||
export DOCKER_SOCKET=$(podman system info -f '{{.Host.RemoteSocket.Path}}')
|
export DOCKER_SOCKET=$(podman system info -f '{{.Host.RemoteSocket.Path}}')
|
||||||
export DOCKER_HOST=unix://$DOCKER_SOCKET
|
export DOCKER_HOST=unix://$DOCKER_SOCKET
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue