From 2a18fa030dac6e04aab92ff0b697e7bd43e92534 Mon Sep 17 00:00:00 2001 From: xtex Date: Mon, 1 Jan 2024 08:24:38 +0800 Subject: [PATCH] Use environment.d --- .config/environment.d/editor.conf | 1 + .config/environment.d/sdk.conf | 12 ++++++++++++ .config/environment.d/ssh.conf | 1 + .gitignore | 3 +++ .profile | 2 +- 5 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .config/environment.d/editor.conf create mode 100644 .config/environment.d/sdk.conf create mode 100644 .config/environment.d/ssh.conf diff --git a/.config/environment.d/editor.conf b/.config/environment.d/editor.conf new file mode 100644 index 0000000..45460f3 --- /dev/null +++ b/.config/environment.d/editor.conf @@ -0,0 +1 @@ +EDITOR=/usr/bin/nvim \ No newline at end of file diff --git a/.config/environment.d/sdk.conf b/.config/environment.d/sdk.conf new file mode 100644 index 0000000..de59868 --- /dev/null +++ b/.config/environment.d/sdk.conf @@ -0,0 +1,12 @@ +PATH="/home/xtex/.local/bin:$PATH" +GRADLE_USER_HOME="/opt/gradle" + +RUSTUP_HOME="/opt/rustup" +CARGO_HOME="/opt/cargo" + +SDKMAN_DIR="/opt/sdkman" + +ZVM_INSTALL="/opt/zvm/self" +PATH="$PATH:/opt/zvm/bin:$ZVM_INSTALL" + +GOROOT="/opt/go" diff --git a/.config/environment.d/ssh.conf b/.config/environment.d/ssh.conf new file mode 100644 index 0000000..0617b1f --- /dev/null +++ b/.config/environment.d/ssh.conf @@ -0,0 +1 @@ +SSH_ASKPASS=/usr/bin/ksshaskpass \ No newline at end of file diff --git a/.gitignore b/.gitignore index 37d1d88..30bcab9 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,9 @@ !/.config/user-dirs.dirs !/.config/autostart/ssh-add.desktop +!/.config/environment.d/sdk.conf +!/.config/environment.d/editor.conf +!/.config/environment.d/ssh.conf !/.config/Code - Exploration/User/settings.json !/.config/Code - Insiders/User/settings.json !/.config/fish/config.fish diff --git a/.profile b/.profile index b2cd071..91da85b 100644 --- a/.profile +++ b/.profile @@ -10,7 +10,7 @@ test -z "$PROFILEREAD" && . /etc/profile || true # Some applications read the EDITOR variable to determine your favourite text # editor. So uncomment the line below and enter the editor of your choice :-) #export EDITOR=/usr/bin/vim -export EDITOR=/usr/bin/nvim +#export EDITOR=/usr/bin/mcedit # For some news readers it makes sense to specify the NEWSSERVER variable here #export NEWSSERVER=your.news.server