chore(global): general devbox + git config chaos

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
This commit is contained in:
Andrei Jiroh Halili 2023-08-23 01:01:58 +08:00
parent 23e8e7d0a4
commit f440cb0801
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8
7 changed files with 68 additions and 22 deletions

View file

@ -41,6 +41,8 @@ export EDITOR=nano
# Context: https://git.sr.ht/~sircmpwn/dotfiles/tree/master/item/.profile#L13-15
# and https://drewdevault.com/2021/08/06/goproxy-breaks-go.html
export GOPROXY=direct GOSUMDB=off
# nix profile install nixpkgs#glibcLocale
export LOCALE_ARCHIVE="$HOME/.nix-profile/lib/locale/locale-archive"
## Stage 2: Source literally everything else ##
if [[ -d "$HOME/.bashbox" ]]; then
@ -62,4 +64,6 @@ export NVM_DIR="$HOME/.nvm"
# make sure shell completions are loaded too
. "$HOME/.asdf/asdf.sh"
. "$HOME/.asdf/completions/asdf.bash"
source <(gopass completion bash)
eval "$(gopass completion bash)"
eval "$(devbox global shellenv)"

View file

@ -2,7 +2,8 @@
name = Andrei Jiroh Halili (RecapTime.dev)
email = ajhalili2006@crew.recaptime.eu.org
signingkey = 52B6B65187A7469A
[commit]
template = /home/ajhalili2006/.config/git/commit-message-templates/recaptime-dev
[url "ssh://git@git.jetbrains.space/recaptime/"]
pushInsteadOf = "https://git.jetbrains.space/recaptime/"
insteadOf = "https://git.jetbrains.space/recaptime/"

View file

@ -14,10 +14,11 @@ RememberWindowSize=false
ShowWindowTitleOnTitleBar=true
[MainWindow]
1366x768 screen: Height=554
1366x768 screen: Height=584
1366x768 screen: Width=911
1366x768 screen: Window-Maximized=true
1366x768 screen: XPosition=227
1366x768 screen: YPosition=141
1366x768 screen: YPosition=126
2 screens: Height=699
2 screens: Width=1366
2 screens: Window-Maximized=true
@ -36,9 +37,8 @@ HDMI-1 eDP-1 Window-Maximized 1366x768 HDMI-1=true
HDMI-1 eDP-1 Window-Maximized 1366x768 eDP-1=true
HDMI-1 eDP-1 XPosition 1366x768 HDMI-1=1366
HDMI-1 eDP-1 YPosition 1366x768 HDMI-1=67
MenuBar=Disabled
RestorePositionForNextInstance=false
State=AAAA/wAAAAD9AAAAAQAAAAAAAAD1AAACjfwCAAAAAvsAAAAiAFEAdQBpAGMAawBDAG8AbQBtAGEAbgBkAHMARABvAGMAawAAAAAA/////wAAAXwBAAAD+wAAABwAUwBTAEgATQBhAG4AYQBnAGUAcgBEAG8AYwBrAAAAAC4AAAKNAAABFQEAAAMAAAOPAAAB/AAAAAQAAAAEAAAACAAAAAj8AAAAAQAAAAIAAAACAAAAFgBtAGEAaQBuAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAAAAAAAAAABwAcwBlAHMAcwBpAG8AbgBUAG8AbwBsAGIAYQByAQAAAOj/////AAAAAAAAAAA=
MenuBar=Enabled
State=AAAA/wAAAAD9AAAAAQAAAAAAAAD1AAACjfwCAAAAAvsAAAAiAFEAdQBpAGMAawBDAG8AbQBtAGEAbgBkAHMARABvAGMAawAAAAAA/////wAAAXkBAAAD+wAAABwAUwBTAEgATQBhAG4AYQBnAGUAcgBEAG8AYwBrAAAAAC4AAAKNAAABEQEAAAMAAAVWAAACbwAAAAQAAAAEAAAACAAAAAj8AAAAAQAAAAIAAAACAAAAFgBtAGEAaQBuAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAAAAAAAAAABwAcwBlAHMAcwBpAG8AbgBUAG8AbwBsAGIAYQByAQAAAOj/////AAAAAAAAAAA=
ToolBarsMovable=Disabled
eDP-1=eDP-1
eDP-1 HDMI-1=eDP-1

View file

@ -6,6 +6,7 @@
[commit]
gpgSign = true
template = /home/ajhalili2006/.config/git/commit-message-templates/default
[tag]
gpgSign = true
forceSignAnnotated = true
@ -21,18 +22,6 @@
[receive]
fsckObjects = true
# project-specific configurations
#[includeIf "gitdir/i:~/git-projects/sandbox"]
# path = ~/.config/git/ajhalili2006-experiments.include.gitconfig
#[includeIf "gitdir/i:~/projects/labs.andreijiroh.dev"]
# path = ~/.config/git/ajhalili2006-experiments.include.gitconfig
[includeIf "gitdir/i:~/git-projects/recaptime.dev"]
path = ~/.config/git/recaptime-dev.include.gitconfig
[includeIf "gitdir/i:~/projects/recaptime.dev"]
path = ~/.config/git/recaptime-dev.include.gitconfig
#[includeIf "gitdir/i:~projects/"]
# path = ~/.config/git/ajhalili2006.include.gitconfig
# authentication hellscape
[credential "https://github.com"]
helper =
@ -89,4 +78,14 @@
[core]
# editor = flatpak run re.sonny.Commit
# project-specific configurations
#[includeIf "gitdir/i:~/git-projects/sandbox"]
# path = ~/.config/git/ajhalili2006-experiments.include.gitconfig
#[includeIf "gitdir/i:~/projects/labs.andreijiroh.dev"]
# path = ~/.config/git/ajhalili2006-experiments.include.gitconfig
[includeIf "gitdir/i:~/git-projects/recaptime.dev/"]
path = ~/.config/git/recaptime-dev.include.gitconfig
[includeIf "gitdir/i:~/projects/recaptime.dev/"]
path = ~/.config/git/recaptime-dev.include.gitconfig
#[includeIf "gitdir/i:~projects/"]
# path = ~/.config/git/ajhalili2006.include.gitconfig

View file

@ -0,0 +1,17 @@
{
"packages": [
"gita@latest",
"shfmt@latest",
"hadolint@latest"
],
"shell": {
"init_hook": [
"echo 'Welcome to devbox!' > /dev/null"
],
"scripts": {
"test": [
"echo \"Error: no test specified\" && exit 1"
]
}
}
}

View file

@ -0,0 +1,23 @@
{
"lockfile_version": "1",
"packages": {
"gita@latest": {
"last_modified": "2023-06-30T04:44:22Z",
"resolved": "github:NixOS/nixpkgs/3c614fbc76fc152f3e1bc4b2263da6d90adf80fb#gita",
"source": "devbox-search",
"version": "0.11.9"
},
"hadolint@latest": {
"last_modified": "2023-07-23T03:35:12Z",
"resolved": "github:NixOS/nixpkgs/af8cd5ded7735ca1df1a1174864daab75feeb64a#hadolint",
"source": "devbox-search",
"version": "2.12.0"
},
"shfmt@latest": {
"last_modified": "2023-08-08T03:07:33Z",
"resolved": "github:NixOS/nixpkgs/844ffa82bbe2a2779c86ab3a72ff1b4176cec467#shfmt",
"source": "devbox-search",
"version": "3.7.0"
}
}
}

View file

@ -24,7 +24,9 @@ fi
export PATH="$PATH:/home/ajhalili2006/.local/share/JetBrains/Toolbox/scripts"
# Import asdf to shell
export ASDF_DIR="$HOME/.asdf"
. "$HOME/.asdf/asdf.sh"
#export ASDF_DIR="$HOME/.asdf"
#. "$HOME/.asdf/asdf.sh"
eval "$(devbox global shellenv)"
_byobu_sourced=1 . /usr/bin/byobu-launch 2>/dev/null || true