signed commit and remove sudo on startup

This commit is contained in:
Reinaldy Rafli 2022-05-07 19:08:30 +07:00
parent ca3364b2bc
commit c94c608b6f
No known key found for this signature in database
GPG Key ID: 748A8EC5DB8653E8
5 changed files with 22 additions and 25 deletions

13
LICENSE Normal file
View File

@ -0,0 +1,13 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Reinaldy Rafli <aldy505@tutanota.com>
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.

View File

@ -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. 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. Use [issues](https://github.com/aldy505/dotfiles/issues) for any questions.
Debian (I used to use Ubuntu) Debian (I used to use Ubuntu)
![](./debian.png) ![](./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
```

View File

@ -128,9 +128,9 @@ eval "$(rbenv init - bash)"
export LIBGL_ALWAYS_INDIRECT=1 export LIBGL_ALWAYS_INDIRECT=1
# set DISPLAY variable to the IP automatically assigned to WSL2 # # set DISPLAY variable to the IP automatically assigned to WSL2
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0 # export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0
sudo /etc/init.d/dbus start &> /dev/null # sudo /etc/init.d/dbus start &> /dev/null
# enable GPG signing # enable GPG signing
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
@ -143,7 +143,7 @@ export GPG_AGENT_INFO=${HOME}/.gnupg/S.gpg-agent:0:1
export EDITOR="micro" export EDITOR="micro"
export COLORTERM="truecolor" 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)" eval "$(starship init bash)"
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! #THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!

View File

@ -39,3 +39,6 @@
[init] [init]
defaultBranch = master defaultBranch = master
[commit]
gpgSign = true

View File

@ -15,7 +15,7 @@ function install () {
function install_alt () { function install_alt () {
cd ~ 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" printf "\n\n"
java --version java --version
printf "\n" printf "\n"