Skip to content

Commit dfca3f5

Browse files
committed
Hello World!
0 parents  commit dfca3f5

40 files changed

+3052
-0
lines changed

.chezmoi.toml.tmpl

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# -*-mode:toml-*- vim:ft=toml
2+
# -*-mode:go-template-*- vim:ft=toml
3+
4+
# ~/.local/share/chezmoi/.chezmoi.toml.tmpl
5+
# =============================================================================
6+
# Used to customize configuration when doing a `chezmoi init`.
7+
#
8+
# This template file will trigger prompts to fill-in machine-specific
9+
# templateable values. The resulting file is then created at
10+
# `~/.config/chezmoi/chezmoi.toml`
11+
# See https://www.chezmoi.io/docs/how-to/
12+
#
13+
# {{- /* This file supports Go's text/template language. */}}
14+
15+
{{ $email := promptStringOnce . "email" "Email address" -}}
16+
{{ $name := promptStringOnce . "name" "Name" -}}
17+
{{ $signingkey := promptStringOnce . "signingkey" "Signing key" -}}
18+
{{ $colortheme := promptString "Color theme (nord/dracula)" }}
19+
20+
{{- $osid := .chezmoi.os -}}
21+
{{- if hasKey .chezmoi.osRelease "id" -}}
22+
{{- $osid = printf "%s-%s" .chezmoi.os .chezmoi.osRelease.id -}}
23+
{{- end -}}
24+
25+
format = "json"
26+
color = "on"
27+
umask = 0o022
28+
29+
[data]
30+
email = {{ $email | quote }}
31+
name = {{ $name | quote }}
32+
signingkey = {{ $signingkey | quote }}
33+
osid = {{ $osid | quote }}
34+
colortheme = {{ $colortheme | quote }}
35+
36+
[diff]
37+
exclude = ["scripts"]
38+
39+
[status]
40+
exclude = ["scripts"]

.chezmoiexternal.toml.tmpl

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# -*-mode: toml;-*- vim:ft=toml
2+
# file: chezmoi/.chezmoiexternal.toml.tmpl
3+
4+
[".local/bin/mdloader"]
5+
type = "file"
6+
url = "https://github.com/Massdrop/mdloader/releases/download/1.0.7/mdloader-Linux.zip"
7+
executable = true
8+
refreshPeriod = "720h"
9+
[".local/bin/mdloader".checksum]
10+
sha256 = "4b40c816827a947861fbb04a1f18595f133a746e45be4b9087e41b021f371908"
11+
[".local/bin/mdloader".filter]
12+
command = "zcat"
13+
14+
[".local/bin/atuin"]
15+
type = "file"
16+
url = "https://github.com/ellie/atuin/releases/download/v15.0.0/atuin-v15.0.0-{{ eq .chezmoi.arch "amd64" | ternary "x86_64" .chezmoi.arch }}-unknown-{{ .chezmoi.os }}-gnu.tar.gz"
17+
executable = true
18+
refreshPeriod = "168h"
19+
[".local/bin/atuin".filter]
20+
command = "tar"
21+
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "atuin-v15.0.0-{{ eq .chezmoi.arch "amd64" | ternary "x86_64" .chezmoi.arch }}-unknown-{{ .chezmoi.os }}-gnu/atuin"]
22+
23+
[".local/bin/bat"]
24+
type = "file"
25+
url = "https://github.com/sharkdp/bat/releases/download/v0.23.0/bat-v0.23.0-{{ eq .chezmoi.arch "amd64" | ternary "x86_64" .chezmoi.arch }}-unknown-{{ .chezmoi.os }}-gnu.tar.gz"
26+
executable = true
27+
refreshPeriod = "168h"
28+
[".local/bin/bat".filter]
29+
command = "tar"
30+
args = ["--extract", "--file", "/dev/stdin", "--gzip", "--to-stdout", "bat-v0.23.0-{{ eq .chezmoi.arch "amd64" | ternary "x86_64" .chezmoi.arch }}-unknown-{{ .chezmoi.os }}-gnu/bat"]
31+
32+
[".local/bin/stylua"]
33+
type = "file"
34+
url = "https://github.com/JohnnyMorganz/StyLua/releases/download/v0.18.0/stylua-linux-x86_64.zip"
35+
executable = true
36+
refreshPeriod = "720h"
37+
[".local/bin/stylua".checksum]
38+
sha256 = "6f3d72d23433857c917507fe780eaf16ba1d5aa0304cae588b181db9282e3dd3"
39+
[".local/bin/stylua".filter]
40+
command = "zcat"
41+
42+
[".local/share/fonts/c/CascadiaCode"]
43+
type = "archive"
44+
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/CascadiaCode.tar.xz"
45+
refreshPeriod = "168h"
46+
[".local/share/fonts/c/CascadiaCode".checksum]
47+
sha256 = "d21d11c3703287663d5c5e72b3f75269fd8adc9f87f03c091b6c71805094bf2e"

.chezmoiignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
README.md
2+
.editorconfig
3+
.chezmoiignore

.gitignore

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/ansible,linux,windows,macos
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=ansible,linux,windows,macos
3+
4+
### Linux ###
5+
*~
6+
7+
# temporary files which can be created if a process still has a handle open of a deleted file
8+
.fuse_hidden*
9+
10+
# KDE directory preferences
11+
.directory
12+
13+
# Linux trash folder which might appear on any partition or disk
14+
.Trash-*
15+
16+
# .nfs files are created when an open file is removed but is still being accessed
17+
.nfs*
18+
19+
### macOS ###
20+
# General
21+
.DS_Store
22+
.AppleDouble
23+
.LSOverride
24+
25+
# Icon must end with two \r
26+
Icon
27+
28+
# Thumbnails
29+
._*
30+
31+
# Files that might appear in the root of a volume
32+
.DocumentRevisions-V100
33+
.fseventsd
34+
.Spotlight-V100
35+
.TemporaryItems
36+
.Trashes
37+
.VolumeIcon.icns
38+
.com.apple.timemachine.donotpresent
39+
40+
# Directories potentially created on remote AFP share
41+
.AppleDB
42+
.AppleDesktop
43+
Network Trash Folder
44+
Temporary Items
45+
.apdisk
46+
47+
### macOS Patch ###
48+
# iCloud generated files
49+
*.icloud
50+
51+
### Windows ###
52+
# Windows thumbnail cache files
53+
Thumbs.db
54+
Thumbs.db:encryptable
55+
ehthumbs.db
56+
ehthumbs_vista.db
57+
58+
# Dump file
59+
*.stackdump
60+
61+
# Folder config file
62+
[Dd]esktop.ini
63+
64+
# Recycle Bin used on file shares
65+
$RECYCLE.BIN/
66+
67+
# Windows Installer files
68+
*.cab
69+
*.msi
70+
*.msix
71+
*.msm
72+
*.msp
73+
74+
# Windows shortcuts
75+
*.lnk
76+
77+
# End of https://www.toptal.com/developers/gitignore/api/ansible,linux,windows,macos
78+
79+
.cache
80+
.cache*

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# dotfiles
2+
3+
These dotfiles can be installed with a one-line shell command:
4+
5+
```shell
6+
sh -c "$(curl -fsLS up.bjers.org)"
7+
```
8+
9+
Or if you have `wget`:
10+
11+
```shell
12+
sh -c "$(wget -qO- up.bjers.org)"
13+
```
14+
15+
Or with PowerShell:
16+
17+
```powershell
18+
(irm -useb https://get.chezmoi.io/ps1) | powershell -c -
19+
```

dot_bashrc

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env bash
2+
# .bashrc
3+
4+
# Source global definitions
5+
if [ -f /etc/bashrc ]; then
6+
. /etc/bashrc
7+
fi
8+
9+
# User specific environment
10+
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then
11+
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
12+
fi
13+
export PATH
14+
15+
# Uncomment the following line if you don't like systemctl's auto-paging feature:
16+
# export SYSTEMD_PAGER=
17+
18+
# User specific aliases and functions
19+
if [ -d ~/.bashrc.d ]; then
20+
for rc in ~/.bashrc.d/*; do
21+
if [ -f "$rc" ]; then
22+
. "$rc"
23+
fi
24+
done
25+
fi
26+
27+
unset rc

dot_editorconfig

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
# Use 4 spaces for Python files
13+
[*.py]
14+
indent_size = 4
15+
max_line_length = 80
16+
17+
# Use tabs for Makefile and Justfile
18+
[{Makefile,Justfile,.justfile}]
19+
indent_style = tab
20+
21+
# Markdown sometimes requires trailing whitespace
22+
[*.md]
23+
trim_trailing_whitespace = false

dot_gitconfig.tmpl

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# -*-mode:gitconfig-*- vim:ft=gitconfig
2+
# -*-mode:ini-*- vim:ft=gitconfig
3+
4+
# ~/.gitconfig
5+
# =============================================================================
6+
# User-specific Git configuration file.
7+
#
8+
# See https://git-scm.com/docs/git-config
9+
#
10+
# {{- /* This file supports Go's text/template language. */}}
11+
12+
[init]
13+
defaultBranch = main
14+
15+
[gpg]
16+
format = ssh
17+
18+
[gpg "ssh"]
19+
program = "/opt/1Password/op-ssh-sign"
20+
allowedSignersFile = {{ .chezmoi.homeDir }}/.ssh/allowed_signers
21+
22+
[commit]
23+
gpgsign = true
24+
25+
[user]
26+
signingkey = {{ .signingkey | quote }}
27+
email = {{ .email | quote }}
28+
name = {{ .name | quote }}
29+
30+
[credential "https://github.com"]
31+
helper =
32+
helper = !/usr/bin/gh auth git-credential
33+
34+
[credential "https://gist.github.com"]
35+
helper =
36+
helper = !/usr/bin/gh auth git-credential
37+
38+
[color]
39+
ui = true
40+
41+
[include]
42+
path = {{ .chezmoi.homeDir }}/.gitinclude

dot_gitinclude.tmpl

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# -*-mode:gitconfig-*- vim:ft=gitconfig
2+
# -*-mode:ini-*- vim:ft=dosini
3+
4+
# ~/.gitinclude
5+
# =============================================================================
6+
# User-specific Git configuration file.
7+
#
8+
# See https://git-scm.com/docs/git-config
9+
#
10+
# {{- /* This file supports Go's text/template language. */ -}}
11+
#
12+
# Sources:
13+
# https://delicious-insights.com/en/posts/mastering-git-submodules/
14+
# https://github.com/haacked/dotfiles
15+
# https://github.com/holman/dotfiles
16+
# https://github.com/jayharris/dotfiles-windows
17+
# https://github.com/mathiasbynens/dotfiles
18+
# https://git-scm.com/docs/git-config/
19+
20+
[alias]
21+
br = branch
22+
ci = commit
23+
co = checkout
24+
co-ours = checkout --ours
25+
co-theirs = checkout --theirs
26+
coi = checkout-index
27+
coi-ours = checkout-index -f -a --stage=2
28+
coi-theirs = checkout-index -f -a --stage=3
29+
cp = cherry-pick
30+
df = diff --color=never
31+
ds = diff --stat --color=never
32+
ds = diff --staged --color=never
33+
g = grep --break --heading --line-number
34+
last = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white)%an, %ar%Creset' -n 20
35+
lc = log ORIG_HEAD.. --stat --no-merges
36+
lp = log --patch --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white)%an, %ar%Creset'
37+
ls = log --stat --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white)%an, %ar%Creset'
38+
mt = mergetool -y
39+
pu = pull
40+
pul = pull
41+
pus = push
42+
rb = rebase
43+
rbc = rebase --continue
44+
rbs = rebase --skip
45+
rl = reflog
46+
rp = remote prune
47+
rs = remote show
48+
rt = remote
49+
ru = remote update
50+
sb = show-branch
51+
st = status -s
52+
push-all = push --follow-tags
53+
pa = push-all
54+
55+
catchup = log --patch --reverse --topo-order _ribbon..origin/main
56+
changes = diff --name-status -r
57+
delete-merged = !git pull --prune && git branch --merged | grep -v '*' | xargs -n 1 git branch -d
58+
diffall = diff HEAD --color=never
59+
diffstat = diff --stat --color=never
60+
fetch-all = fetch --depth=999999999
61+
forget = rm --cached
62+
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
63+
merge-ours = !git checkout --ours . && git add -u && git commit
64+
merge-theirs = !git checkout --theirs . && git add -u && git commit
65+
pop = stash pop
66+
push-new = !git push -u origin `git rev-parse --abbrev-ref HEAD`
67+
reset-origin = !git fetch && git reset --hard "origin/`git rev-parse --abbrev-ref HEAD`"
68+
ribbon = tag --force _ribbon origin/main
69+
root = !pwd
70+
serve = daemon --reuseaddr --verbose --base-path=. --export-all ./.git
71+
stage = add
72+
staged = diff --staged
73+
tags = tag -l
74+
track = checkout -t
75+
undo = reset --soft HEAD^
76+
unstage = reset HEAD
77+
unstaged = diff
78+
unstash = stash apply
79+
who = shortlog -s --

dot_justfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
default:
2+
@just --unstable --list
3+
4+
update:
5+
sudo dnf update -y

0 commit comments

Comments
 (0)