From c94c608b6fdd81e2f350c093116f6444970f6e17 Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Sat, 7 May 2022 19:08:30 +0700 Subject: [PATCH] signed commit and remove sudo on startup --- LICENSE | 13 +++++++++++++ README.md | 21 +-------------------- bash/.bashrc | 8 ++++---- git/.gitconfig | 3 +++ scripts/java.sh | 2 +- 5 files changed, 22 insertions(+), 25 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b78120c --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Reinaldy Rafli + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. \ No newline at end of file diff --git a/README.md b/README.md index 263fb3a..39bd2fa 100755 --- a/README.md +++ b/README.md @@ -2,28 +2,9 @@ This is here in case anything goes wrong. I'm using WSL2 (Windows Subsystem Linux), so no window manager or something like that. -I'm not licensing it. If you want to steal a script or two, that's totally fine, even without asking my permission. +I'm licensing it under [WTFPL](./LICENSE). If you want to steal a script or two, that's totally fine, even without asking my permission. Use [issues](https://github.com/aldy505/dotfiles/issues) for any questions. Debian (I used to use Ubuntu) ![](./debian.png) - -### Directory structure - -``` -. -├── bash - Bash configs -├── bin - Shortcut bash scripts -├── git - Git configs -├── go - Golang configs -├── micro - Micro configs -├── neofetch - Neofetch configs -├── nvim - Neovim configs -├── scripts - Installation scripts -│ -├── me.jpg - My Github profile picture -├── README.md - You are here -├── setup_arch.sh - Entrypoint if I'm doing a fresh install for arch -└── setup_deb.sh - Entrypoint if I'm doing a fresh install for debian -``` \ No newline at end of file diff --git a/bash/.bashrc b/bash/.bashrc index 04f24a3..e8770e6 100755 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -128,9 +128,9 @@ eval "$(rbenv init - bash)" export LIBGL_ALWAYS_INDIRECT=1 -# set DISPLAY variable to the IP automatically assigned to WSL2 -export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0 -sudo /etc/init.d/dbus start &> /dev/null +# # set DISPLAY variable to the IP automatically assigned to WSL2 +# export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0 +# sudo /etc/init.d/dbus start &> /dev/null # enable GPG signing export GPG_TTY=$(tty) @@ -143,7 +143,7 @@ export GPG_AGENT_INFO=${HOME}/.gnupg/S.gpg-agent:0:1 export EDITOR="micro" export COLORTERM="truecolor" -export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 +export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 eval "$(starship init bash)" #THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! diff --git a/git/.gitconfig b/git/.gitconfig index 085ee24..4fd9d27 100755 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -39,3 +39,6 @@ [init] defaultBranch = master + +[commit] + gpgSign = true \ No newline at end of file diff --git a/scripts/java.sh b/scripts/java.sh index f00880a..6abea36 100755 --- a/scripts/java.sh +++ b/scripts/java.sh @@ -15,7 +15,7 @@ function install () { function install_alt () { cd ~ - sudo apt-get install openjdk-17-jre openjdk-17-jdk + sudo apt-get install -y openjdk-17-jre openjdk-17-jdk printf "\n\n" java --version printf "\n"