dotfiles
bugabingas dorkfiles
owned by bugabinga
topgrade fixeru
ead436aa12b32db57a66890e3c52c94e51a07764
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
Browse filesCompare with HEAD
Changed files (7)
neovim/lazy-lock.json
Modified21 21 "nvim-lastplace": {
"branch":
"main",
"commit":
"0bb6103c506315044872e0f84b1f736c4172bb20" },
22 22 "nvim-lint": {
"branch":
"master",
"commit":
"968a35d54b3a4c1ce66609cf80b14d4ae44fe77f" },
23 23 "nvim-neoclip.lua": {
"branch":
"main",
"commit":
"32e05f2d23dc5b6a284a688c0535a83d1bfc633f" },
24 - "nvim-rulebook": {
"branch":
"main",
"commit":
"252de87c32d6367b44810b7a7b44daf49b963844" },
24 + "nvim-rulebook": {
"branch":
"main",
"commit":
"1ef4ea61ebbb4d4b77417870c1247005b12af09d" },
25 25 "nvim-surround": {
"branch":
"main",
"commit":
"ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
26 - "nvim-treesitter": {
"branch":
"master",
"commit":
"28591731d84c2fc18ddda60e1d53da24c31c4987" },
26 + "nvim-treesitter": {
"branch":
"master",
"commit":
"8d4fdc5e47e2a4e00179e43f56221250ce365973" },
27 27 "nvim-treesitter-endwise": {
"branch":
"master",
"commit":
"8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
28 28 "nvim-treesitter-textobjects": {
"branch":
"master",
"commit":
"ad8f0a472148c3e0ae9851e26a722ee4e29b1595" },
29 29 "nvim-ts-autotag": {
"branch":
"main",
"commit":
"e239a560f338be31337e7abc3ee42515daf23f5e" },
neovim/spell/nerd.utf-8.add
Modifiedneovim/spell/nerd.utf-8.add.spl
ModifiedPrevious version contains binary or non-UTF-8 data.
Current version contains binary or non-UTF-8 data.
nushell/scripts/notes.nu
Modified 10 -def validate_context [
13 - if not (
$env.NOTES | path exists) {
15 - msg: "No notes folder found
in environment variables.
16 - Make sure a NOTES variable exists
in $env."
19 - if not (
$env.NOTES | path join
$context | path exists) {
21 - msg: $"The given context (
$context) does not exist
in (
$env.NOTES).
22 - Create it and try again."
28 - --context: string =
"bugabinga" 32 - validate_context
$context 34 - ls --short-names (
$env.NOTES | path join
$context)
38 -def new_note_id [] { random binary
3 | encode base64 --nopad --url }
53 -(
$tags |
each {
'- ' +
$in } | str join (char nl))
59 -def edit [ ...rest ] {
60 - mut editor =
if (
$env.EDITOR == null ) {
'vi' }
else {
$env.EDITOR }
61 - $editor =
if (
$env.VISUAL == null ) {
$editor }
else {
$env.VISUAL }
62 - run-external
$editor ...
$rest 65 -def notes_directory [
68 - $env.NOTES | path join
$context 73 - --tags: list<string>
74 - --context: string =
"bugabinga" 76 - validate_context
$context 78 - let title =
if (
$title | is-empty) { input
"gimme title: " }
else {
$title }
79 - let author =
'Oliver Jan Krylow' 80 - let now = date now | date to-record
81 - let date = $
"($now.day)/($now.month)/($now.year)" 82 - let tags =
if (
$tags == null) { [] }
else {
$tags }
84 - let note_content = new_note
$title $author $date $tags $context 85 - let note_file_name = $
"(new_note_id)-($title | str kebab-case).md" 86 - let note_file = [ (notes_directory
$context)
$note_file_name] | path join
88 - if (
$note_file | path exists) {
90 - msg:
"the note you are trying to create exists already" 93 - $note_content | save --raw
$note_file 99 - --context: string =
"bugabinga" 101 - let note = ls --short-names --threads ( notes_directory
$context) |
102 - sort-by --reverse modified |
105 - ^sk --query
$query --bind $
"f1:execute\(inlyne (notes_directory $context)/{}\)" --preview $
"mdcat (notes_directory $context)/{}" --header
"F1: GUI Preview" 107 - edit ( notes_directory
$context | path join
$note)
10 +def validate_context [
13 + if not (
$env.NOTES | path exists) {
15 + msg: "No notes folder found
in environment variables.
16 + Make sure a NOTES variable exists
in $env."
19 + if not (
$env.NOTES | path join
$context | path exists) {
21 + msg: $"The given context (
$context) does not exist
in (
$env.NOTES).
22 + Create it and try again."
28 + --context: string =
"bugabinga" 33 + validate_context
$context 35 + ls --short-names (
$env.NOTES | path join
$context)
39 +def new_note_id [] { random binary
3 | encode base64 --nopad --url }
54 +(
$tags |
each {
'- ' +
$in } | str join (char nl))
60 +def edit [ ...rest ] {
61 + mut editor =
if (
$env.EDITOR == null ) {
'vi' }
else {
$env.EDITOR }
62 + $editor =
if (
$env.VISUAL == null ) {
$editor }
else {
$env.VISUAL }
63 + run-external
$editor ...
$rest 66 +def notes_directory [
69 + $env.NOTES | path join
$context 74 + --tags: list<string>
75 + --context: string =
"bugabinga" 77 + validate_context
$context 79 + let title =
if (
$title | is-empty) { input
"gimme title: " }
else {
$title }
80 + let author =
'Oliver Jan Krylow' 81 + let now = date now | date to-record
82 + let date = $
"($now.day)/($now.month)/($now.year)" 83 + let tags =
if (
$tags == null) { [] }
else {
$tags }
85 + let note_content = new_note
$title $author $date $tags $context 86 + let note_file_name = $
"(new_note_id)-($title | str kebab-case).md" 87 + let note_file = [ (notes_directory
$context)
$note_file_name] | path join
89 + if (
$note_file | path exists) {
91 + msg:
"the note you are trying to create exists already" 94 + $note_content | save --raw
$note_file 100 + --context: string =
"bugabinga" 102 + let note = ls --short-names --threads ( notes_directory
$context) |
103 + sort-by --reverse modified |
106 + ^sk --query
$query --bind $
"f1:execute\(inlyne (notes_directory $context)/{}\)" --preview $
"mdcat (notes_directory $context)/{}" --header
"F1: GUI Preview" 108 + edit ( notes_directory
$context | path join
$note)
nushell/scripts/sy.nu
Modified45 45 run-external git ...
$git_pull_notes 47 47 run-external git ...
$git_pull_dotfiles 49 - run-external topgrade
48 + if (not
$env.WIN32) {
50 + run-external topgrade
52 54 def all-exist [] { all { which
$in | is-not-empty } }
topgrade/win32.toml
Modified 2 -sudo_command =
"gsudo" 5 -"Enable Script Execution" =
'gsudo powershell -Command "Set-ExecutionPolicy RemoteSigned"' 6 -"Enable Developer Mode" =
'gsudo powershell -File "X:\Enable Developer Mode.ps1"' 7 -"Setup Drives" =
'gsudo cmd /k "X:\Setup Drives.reg"' 8 -"Disable Caps Lock" =
'gsudo cmd /k "X:\Disable Caps Lock.reg"' 9 -"Register CMD Aliases" =
'gsudo cmd /k "X:\Register CMD Aliases.reg"' 10 -"Enable Long Paths" =
'gsudo cmd /k "X:\Enable Long Paths.reg"' 11 -"Winget Export" =
'winget export --source winget --nowarn --output X:\winget_installed_apps.json' 4 +"01 Enable Script Execution" =
'powershell -Command "Set-ExecutionPolicy RemoteSigned"' 5 +"02 Enable Developer Mode" =
'powershell -File "X:\Enable Developer Mode.ps1"' 6 +"03 Setup Drives" =
'reg import "X:\Setup Drives.reg"' 7 +"04 Disable Caps Lock" =
'reg import "X:\Disable Caps Lock.reg"' 8 +"05 Register CMD Aliases" =
'reg import "X:\Register CMD Aliases.reg"' 9 +"06 Enable Long Paths" =
'reg import "X:\Enable Long Paths.reg"' 10 +"07 Winget Export" =
'winget export --source winget --nowarn --output X:\winget_installed_apps.json' wezterm/bugabinga/code_fonts.csv
Modified 62 62 1,
Monaspace Argon Var 63 -13,
Monaspace Krypton Var 63 +22,
Monaspace Krypton Var 64 64 1,
Monaspace Neon Var 65 65 1,
Monaspace Radon Var 66 66 1,
Monaspace Xenon Var 97 97 0,
Symbols Nerd Font 98 98 0,
Symbols Nerd Font Mono 102 102 0,
Verily Serif Mono