mirror of
https://github.com/andwati/dotfiles.git
synced 2026-11-08 04:55:13 +00:00
Compare commits
70
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
75c7d610c7
|
||
|
|
2c1e2b7a00
|
||
|
|
232533907b | ||
|
|
d08e2ee34d | ||
|
|
a6c8bb6e88 | ||
|
|
e2a9859e0c | ||
|
|
be6d51b1ea | ||
|
|
a7e70b9825 | ||
|
|
b5dd061401 | ||
|
|
37be86e485 | ||
|
|
1207829c8b | ||
|
|
9471c7dc38 | ||
|
|
f0ba9d7fe0 | ||
|
|
34b51f3a6c | ||
|
|
85f0025bf4 | ||
|
|
8b3349176c | ||
|
|
0c87d8ff3f | ||
|
|
888d32fffd | ||
|
|
1688863207 | ||
|
|
4b7db3bfa3 | ||
|
|
76ec060d18 | ||
|
|
59e42514e6 | ||
|
|
5baf3df0c4 | ||
|
|
bac27e70d4 | ||
|
|
3d328e204b | ||
|
|
e37cb4fabc | ||
|
|
85b13ff05b | ||
|
|
9353a452e4 | ||
|
|
79eeadba8c | ||
|
|
02d9cf7b90 | ||
|
|
ab465c76b8 | ||
|
|
7d2a6334e0 | ||
|
|
f272c15236 | ||
|
|
653d290eec | ||
|
|
f77a7de48c | ||
|
|
85de2331e2 | ||
|
|
b53c0e1b21 | ||
|
|
c8c3b7f195 | ||
|
|
f636ac5b20 | ||
|
|
b28132063d | ||
|
|
5d75d0e5ca | ||
|
|
a58be532ab | ||
|
|
4adcd489c9 | ||
|
|
d6e845021d | ||
|
|
de1ee1cd87 | ||
|
|
ef9e5fd29c | ||
|
|
f8ae5e8f6e | ||
|
|
45cc18a592 | ||
|
|
7094248179 | ||
|
|
f624b397d2 | ||
|
|
5b9024228f | ||
|
|
91b68a3dce | ||
|
|
56a38beb92 | ||
|
|
33db016c1c | ||
|
|
cfcee0da63 | ||
|
|
fb0dd78fce | ||
|
|
752aa37d8d | ||
|
|
352b409efb | ||
|
|
81283960e0 | ||
|
|
b85713338c | ||
|
|
c9981db771 | ||
|
|
46a7a29a68 | ||
|
|
12d9ecefe9 | ||
|
|
e085eda714 | ||
|
|
739a7fcac5 | ||
|
|
2d96e36118 | ||
|
|
3a436581e8 | ||
|
|
4924904bb8 | ||
|
|
139bebe214 | ||
|
|
30a3c4c6d8 |
@@ -5,7 +5,7 @@ My configuration files that keep me from flipping a table after logging in.
|
|||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo pacman -S stow # or your distro's equivalent
|
sudo dnf install git # install.sh dnf-installs stow and the rest
|
||||||
git clone https://github.com/andwati/dotfiles ~/dev/dotfiles
|
git clone https://github.com/andwati/dotfiles ~/dev/dotfiles
|
||||||
~/dev/dotfiles/install.sh
|
~/dev/dotfiles/install.sh
|
||||||
```
|
```
|
||||||
@@ -14,9 +14,10 @@ Each top-level directory is a [GNU Stow](https://www.gnu.org/software/stow/)
|
|||||||
package mirroring `$HOME` (e.g. `zsh/.zshrc` -> `~/.zshrc`). `install.sh`
|
package mirroring `$HOME` (e.g. `zsh/.zshrc` -> `~/.zshrc`). `install.sh`
|
||||||
clones oh-my-zsh plus the theme/plugins `.zshrc` expects (powerlevel10k,
|
clones oh-my-zsh plus the theme/plugins `.zshrc` expects (powerlevel10k,
|
||||||
zsh-autosuggestions, zsh-syntax-highlighting, zsh-history-substring-search,
|
zsh-autosuggestions, zsh-syntax-highlighting, zsh-history-substring-search,
|
||||||
zsh-completions, you-should-use), then stows the `zsh`, `gnupg`, and `git` packages to link
|
zsh-completions, you-should-use), then stows the `zsh`, `gnupg`, `git`,
|
||||||
everything in, backing up any conflicting real files it finds first (e.g.
|
`ghostty`, `kde`, `nvim`, and `vscode` packages to link everything in, backing
|
||||||
oh-my-zsh's own freshly-installed `.zshrc`).
|
up any conflicting real files it finds first (e.g. oh-my-zsh's own
|
||||||
|
freshly-installed `.zshrc`).
|
||||||
|
|
||||||
To add a new package: create a top-level dir shaped like `$HOME` (e.g.
|
To add a new package: create a top-level dir shaped like `$HOME` (e.g.
|
||||||
`git/.gitconfig`), then add a `stow_package <name>` call in `install.sh`.
|
`git/.gitconfig`), then add a `stow_package <name>` call in `install.sh`.
|
||||||
@@ -27,5 +28,5 @@ constantly, and uses `pinentry-qt` for a native dialog instead of a
|
|||||||
terminal prompt.
|
terminal prompt.
|
||||||
|
|
||||||
Not installed by the script — grab these separately if a fresh machine needs
|
Not installed by the script — grab these separately if a fresh machine needs
|
||||||
them: `nvm`, `pyenv`, `bun`, `pnpm`, `deno`, `rustup`, `docker`, `fzf`,
|
them: `nvm`, `pyenv`, `bun`, `pnpm`, `deno`, `rustup`, `docker`, `ghostty`,
|
||||||
`zoxide`, and a Nerd Font (JetBrains Mono Nerd Font) set as your terminal font.
|
`lazygit`, and a Nerd Font (JetBrains Mono Nerd Font) set as your terminal font.
|
||||||
|
|||||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
|||||||
|
background-opacity = 0.85
|
||||||
|
background-blur = true
|
||||||
@@ -6,3 +6,68 @@
|
|||||||
gpgsign = true
|
gpgsign = true
|
||||||
[tag]
|
[tag]
|
||||||
gpgSign = true
|
gpgSign = true
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
|
[color]
|
||||||
|
ui = true
|
||||||
|
[core]
|
||||||
|
filemode = false
|
||||||
|
autocrlf = input
|
||||||
|
[credential "https://android.googlesource.com"]
|
||||||
|
helper =
|
||||||
|
helper = luci
|
||||||
|
useHttpPath = yes
|
||||||
|
[credential "https://aomedia.googlesource.com"]
|
||||||
|
helper =
|
||||||
|
helper = luci
|
||||||
|
useHttpPath = yes
|
||||||
|
[credential "https://beto-core.googlesource.com"]
|
||||||
|
helper =
|
||||||
|
helper = luci
|
||||||
|
useHttpPath = yes
|
||||||
|
[credential "https://boringssl.googlesource.com"]
|
||||||
|
helper =
|
||||||
|
helper = luci
|
||||||
|
useHttpPath = yes
|
||||||
|
[credential "https://chromium.googlesource.com"]
|
||||||
|
helper =
|
||||||
|
helper = luci
|
||||||
|
useHttpPath = yes
|
||||||
|
[credential "https://chrome-internal.googlesource.com"]
|
||||||
|
helper =
|
||||||
|
helper = luci
|
||||||
|
useHttpPath = yes
|
||||||
|
[credential "https://dawn.googlesource.com"]
|
||||||
|
helper =
|
||||||
|
helper = luci
|
||||||
|
useHttpPath = yes
|
||||||
|
[credential "https://pdfium.googlesource.com"]
|
||||||
|
helper =
|
||||||
|
helper = luci
|
||||||
|
useHttpPath = yes
|
||||||
|
[credential "https://quiche.googlesource.com"]
|
||||||
|
helper =
|
||||||
|
helper = luci
|
||||||
|
useHttpPath = yes
|
||||||
|
[credential "https://skia.googlesource.com"]
|
||||||
|
helper =
|
||||||
|
helper = luci
|
||||||
|
useHttpPath = yes
|
||||||
|
[credential "https://swiftshader.googlesource.com"]
|
||||||
|
helper =
|
||||||
|
helper = luci
|
||||||
|
useHttpPath = yes
|
||||||
|
[credential "https://webrtc.googlesource.com"]
|
||||||
|
helper =
|
||||||
|
helper = luci
|
||||||
|
useHttpPath = yes
|
||||||
|
[credential "https://github.com"]
|
||||||
|
helper =
|
||||||
|
helper = !/usr/bin/gh auth git-credential
|
||||||
|
[credential "https://gist.github.com"]
|
||||||
|
helper =
|
||||||
|
helper = !/usr/bin/gh auth git-credential
|
||||||
|
[url "https://invent.kde.org/"]
|
||||||
|
insteadOf = kde:
|
||||||
|
[url "ssh://[email protected]/"]
|
||||||
|
pushInsteadOf = kde:
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
default-cache-ttl 28800
|
default-cache-ttl 86400
|
||||||
max-cache-ttl 86400
|
max-cache-ttl 604800
|
||||||
pinentry-program /usr/bin/pinentry-qt
|
pinentry-program /usr/bin/pinentry-qt
|
||||||
|
|||||||
+10
-5
@@ -8,10 +8,10 @@ set -euo pipefail
|
|||||||
DOTFILES_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
DOTFILES_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
ZSH_CUSTOM="${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"
|
ZSH_CUSTOM="${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"
|
||||||
|
|
||||||
command -v stow >/dev/null || {
|
# Fedora packages the dotfiles rely on (dnf skips ones already installed).
|
||||||
echo "GNU Stow is required: sudo pacman -S stow (or your distro's equivalent)" >&2
|
sudo dnf install -y \
|
||||||
exit 1
|
stow git curl zsh gnupg2 pinentry-qt \
|
||||||
}
|
neovim ripgrep fd-find fzf zoxide wl-clipboard gcc make
|
||||||
|
|
||||||
clone_if_missing() {
|
clone_if_missing() {
|
||||||
local url="$1" dst="$2"
|
local url="$1" dst="$2"
|
||||||
@@ -56,12 +56,17 @@ mkdir -p "$HOME/.gnupg" && chmod 700 "$HOME/.gnupg"
|
|||||||
stow_package zsh
|
stow_package zsh
|
||||||
stow_package gnupg
|
stow_package gnupg
|
||||||
stow_package git
|
stow_package git
|
||||||
|
stow_package ghostty
|
||||||
|
stow_package kde
|
||||||
|
stow_package nvim
|
||||||
|
stow_package vscode
|
||||||
gpgconf --kill gpg-agent 2>/dev/null || true
|
gpgconf --kill gpg-agent 2>/dev/null || true
|
||||||
|
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
|
|
||||||
Done. This does NOT install (grab these separately if missing):
|
Done. This does NOT install (grab these separately if missing):
|
||||||
- nvm, pyenv, bun, pnpm, deno, rustup, docker, fzf, zoxide
|
- nvm, pyenv, bun, pnpm, deno, rustup, docker
|
||||||
|
- ghostty, lazygit, tree-sitter-cli, VS Code (not in Fedora's default repos)
|
||||||
- a Nerd Font (JetBrains Mono Nerd Font) — set it as your terminal's font
|
- a Nerd Font (JetBrains Mono Nerd Font) — set it as your terminal's font
|
||||||
|
|
||||||
Start a new shell to pick everything up: exec zsh
|
Start a new shell to pick everything up: exec zsh
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
[Daemon]
|
||||||
|
Autolock=false
|
||||||
|
LockOnResume=false
|
||||||
|
Timeout=0
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
tt.*
|
||||||
|
.tests
|
||||||
|
doc/tags
|
||||||
|
debug
|
||||||
|
.repro
|
||||||
|
foo.*
|
||||||
|
*.log
|
||||||
|
data
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"neodev": {
|
||||||
|
"library": {
|
||||||
|
"enabled": true,
|
||||||
|
"plugins": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"neoconf": {
|
||||||
|
"plugins": {
|
||||||
|
"lua_ls": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,201 @@
|
|||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- bootstrap lazy.nvim, LazyVim and your plugins
|
||||||
|
require("config.lazy")
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"LazyVim": { "branch": "main", "commit": "999700997f72227187d49d8b92667183dc7fc809" },
|
||||||
|
"blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" },
|
||||||
|
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
|
||||||
|
"catppuccin": { "branch": "main", "commit": "edefef779ab08ce1a4a404713e3012b0d202bd35" },
|
||||||
|
"clangd_extensions.nvim": { "branch": "main", "commit": "78c2ecd659d54972be17aa6ba2deac3c53223b80" },
|
||||||
|
"conform.nvim": { "branch": "master", "commit": "016802de402556da54c36bd7359b441266b01cdd" },
|
||||||
|
"crates.nvim": { "branch": "main", "commit": "7039bc1d130e424232a7aa64ceddb170a154ff5b" },
|
||||||
|
"flash.nvim": { "branch": "main", "commit": "5f0f270fdc7c5b0c21d903ee85b9cb06f2ac636a" },
|
||||||
|
"friendly-snippets": { "branch": "main", "commit": "b4d01b0fdf3c9a549961c2f9ffe8dc09be166219" },
|
||||||
|
"gitsigns.nvim": { "branch": "main", "commit": "851a051e2bd2caba97e23314c68d69f1b1cf5d19" },
|
||||||
|
"grug-far.nvim": { "branch": "main", "commit": "11595bf747edc270bce2069d1020502ad4ae56cf" },
|
||||||
|
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
||||||
|
"lazydev.nvim": { "branch": "main", "commit": "ff2cbcba459b637ec3fd165a2be59b7bbaeedf0d" },
|
||||||
|
"lualine.nvim": { "branch": "master", "commit": "221ce6b2d999187044529f49da6554a92f740a96" },
|
||||||
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "b3298993d55fa194279b5eb9dbfb3a43da65cadf" },
|
||||||
|
"mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" },
|
||||||
|
"mini.ai": { "branch": "main", "commit": "c2c4278beb759aa24b9506f56a67186a6cc2209c" },
|
||||||
|
"mini.icons": { "branch": "main", "commit": "f642e3ba8c12afbc8f32f6d77ef6597eac56786f" },
|
||||||
|
"mini.pairs": { "branch": "main", "commit": "b1c5a726921b7a8c9321e9a7a208aa0571de5810" },
|
||||||
|
"noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" },
|
||||||
|
"nui.nvim": { "branch": "main", "commit": "10fc361835c856ba4233ef5ea135b919bf3dce97" },
|
||||||
|
"nvim-lint": { "branch": "master", "commit": "3d55c8f67c6ae5c15e1042571e107c7a3d5c5f4e" },
|
||||||
|
"nvim-lspconfig": { "branch": "master", "commit": "33497f4930d40f28a465d38a763a00fc6902c658" },
|
||||||
|
"nvim-treesitter": { "branch": "main", "commit": "e289100ff98969e118c702199d88b764ce9e7fdf" },
|
||||||
|
"nvim-treesitter-textobjects": { "branch": "main", "commit": "5c7b0263797dfd1bd6202f2b219f3b53a80b2187" },
|
||||||
|
"nvim-ts-autotag": { "branch": "main", "commit": "d7220b55e16ed3c04e88086256def5d282429493" },
|
||||||
|
"persistence.nvim": { "branch": "main", "commit": "b20b2a7887bd39c1a356980b45e03250f3dce49c" },
|
||||||
|
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
||||||
|
"rustaceanvim": { "branch": "main", "commit": "a968f5133b8b24f481de12f08cd79420d1ace559" },
|
||||||
|
"snacks.nvim": { "branch": "main", "commit": "882c996cf28183f4d63640de0b4c02ec886d01f2" },
|
||||||
|
"todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },
|
||||||
|
"tokyonight.nvim": { "branch": "main", "commit": "cdc07ac78467a233fd62c493de29a17e0cf2b2b6" },
|
||||||
|
"trouble.nvim": { "branch": "main", "commit": "bd67efe408d4816e25e8491cc5ad4088e708a69a" },
|
||||||
|
"ts-comments.nvim": { "branch": "main", "commit": "a59d6092213447450191122c9346f309161504cb" },
|
||||||
|
"venv-selector.nvim": { "branch": "main", "commit": "cc4bb3975de8835291f9bb45889e96c6b2795fc4" },
|
||||||
|
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" }
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"extras": [
|
||||||
|
|
||||||
|
],
|
||||||
|
"install_version": 8,
|
||||||
|
"news": {
|
||||||
|
"NEWS.md": "11866"
|
||||||
|
},
|
||||||
|
"version": 8
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
-- Autocmds are automatically loaded on the VeryLazy event
|
||||||
|
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
||||||
|
--
|
||||||
|
-- Add any additional autocmds here
|
||||||
|
-- with `vim.api.nvim_create_autocmd`
|
||||||
|
--
|
||||||
|
-- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults)
|
||||||
|
-- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell")
|
||||||
|
|
||||||
|
-- enter terminal mode whenever a terminal buffer is focused
|
||||||
|
vim.api.nvim_create_autocmd({ "TermOpen", "BufEnter", "WinEnter" }, {
|
||||||
|
group = vim.api.nvim_create_augroup("term_autoinsert", { clear = true }),
|
||||||
|
pattern = "term://*",
|
||||||
|
callback = function()
|
||||||
|
vim.cmd("startinsert")
|
||||||
|
end,
|
||||||
|
})
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
-- Keymaps are automatically loaded on the VeryLazy event
|
||||||
|
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||||
|
-- Add any additional keymaps here
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||||
|
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||||
|
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||||
|
if vim.v.shell_error ~= 0 then
|
||||||
|
vim.api.nvim_echo({
|
||||||
|
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||||
|
{ out, "WarningMsg" },
|
||||||
|
{ "\nPress any key to exit..." },
|
||||||
|
}, true, {})
|
||||||
|
vim.fn.getchar()
|
||||||
|
os.exit(1)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
require("lazy").setup({
|
||||||
|
spec = {
|
||||||
|
-- add LazyVim and import its plugins
|
||||||
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||||
|
-- language support (LSP, treesitter, formatters, debuggers)
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.zig" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.python" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.typescript" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.rust" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.go" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.clangd" },
|
||||||
|
-- import/override with your plugins
|
||||||
|
{ import = "plugins" },
|
||||||
|
},
|
||||||
|
defaults = {
|
||||||
|
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||||
|
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
||||||
|
lazy = false,
|
||||||
|
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
||||||
|
-- have outdated releases, which may break your Neovim install.
|
||||||
|
version = false, -- always use the latest git commit
|
||||||
|
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
||||||
|
},
|
||||||
|
install = { colorscheme = { "tokyonight", "habamax" } },
|
||||||
|
checker = {
|
||||||
|
enabled = true, -- check for plugin updates periodically
|
||||||
|
notify = false, -- notify on update
|
||||||
|
}, -- automatically check for plugin updates
|
||||||
|
performance = {
|
||||||
|
rtp = {
|
||||||
|
-- disable some rtp plugins
|
||||||
|
disabled_plugins = {
|
||||||
|
"gzip",
|
||||||
|
-- "matchit",
|
||||||
|
-- "matchparen",
|
||||||
|
-- "netrwPlugin",
|
||||||
|
"tarPlugin",
|
||||||
|
"tohtml",
|
||||||
|
"tutor",
|
||||||
|
"zipPlugin",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
-- Options are automatically loaded before lazy.nvim startup
|
||||||
|
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||||
|
-- Add any additional options here
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
indent_type = "Spaces"
|
||||||
|
indent_width = 2
|
||||||
|
column_width = 120
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
GITHUB_USERNAME="andwati"
|
||||||
|
DESTINATION_FOLDER=~/dev
|
||||||
|
|
||||||
|
# Define colors
|
||||||
|
GREEN="\e[32m"
|
||||||
|
BLUE="\e[34m"
|
||||||
|
RED="\e[31m"
|
||||||
|
RESET="\e[0m"
|
||||||
|
|
||||||
|
clone_repositories() {
|
||||||
|
local parent_dir=$1
|
||||||
|
local repo_name=$2
|
||||||
|
|
||||||
|
# Clone the repository using GitHub CLI
|
||||||
|
echo -e "${BLUE}Cloning repository: $repo_name${RESET}"
|
||||||
|
if gh repo clone "$GITHUB_USERNAME/$repo_name" "$parent_dir/$repo_name"; then
|
||||||
|
echo -e "${GREEN}Successfully cloned: $repo_name${RESET}"
|
||||||
|
else
|
||||||
|
echo -e "${RED}Failed to clone: $repo_name${RESET}"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Move into the cloned repository folder
|
||||||
|
cd "$parent_dir/$repo_name" || exit
|
||||||
|
|
||||||
|
# If there are submodules, initialize and update them
|
||||||
|
if [ -f ".gitmodules" ]; then
|
||||||
|
echo -e "${BLUE}Initializing and updating submodules for: $repo_name${RESET}"
|
||||||
|
git submodule init
|
||||||
|
git submodule update
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
main() {
|
||||||
|
# Ensure the destination folder exists
|
||||||
|
mkdir -p "$DESTINATION_FOLDER"
|
||||||
|
|
||||||
|
# Fetch the list of repositories for the user using GitHub CLI, including private and public repos
|
||||||
|
echo -e "${BLUE}Fetching repositories for user: $GITHUB_USERNAME${RESET}"
|
||||||
|
repos=$(gh repo list "$GITHUB_USERNAME" --visibility public --limit 100 --json name -q '.[].name')
|
||||||
|
private_repos=$(gh repo list "$GITHUB_USERNAME" --visibility private --limit 100 --json name -q '.[].name')
|
||||||
|
|
||||||
|
# Combine public and private repositories
|
||||||
|
repos="$repos $private_repos"
|
||||||
|
|
||||||
|
# Initialize progress variables
|
||||||
|
total_repos=$(echo "$repos" | wc -w)
|
||||||
|
count=0
|
||||||
|
|
||||||
|
# Loop through each repository and clone it
|
||||||
|
for repo in $repos; do
|
||||||
|
count=$((count + 1))
|
||||||
|
echo -e "${BLUE}Progress: [$count/$total_repos]${RESET}"
|
||||||
|
clone_repositories "$DESTINATION_FOLDER" "$repo"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo -e "${GREEN}Cloning complete! ${RESET}"
|
||||||
|
}
|
||||||
|
|
||||||
|
main
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"workbench.colorTheme": "Dark Modern",
|
||||||
|
"workbench.productIconTheme": "material-product-icons",
|
||||||
|
"workbench.iconTheme": "material-icon-theme",
|
||||||
|
"editor.fontFamily": "'JetBrainsMono Nerd Font','Droid Sans Mono', monospace",
|
||||||
|
"workbench.browser.searchEngine": "google",
|
||||||
|
"workbench.browser.openLocalhostLinks": false,
|
||||||
|
"diffEditor.renderSideBySide": true,
|
||||||
|
"diffEditor.useInlineViewWhenSpaceIsLimited": true,
|
||||||
|
"json.schemaDownload.trustedDomains": {
|
||||||
|
"https://biomejs.dev": true,
|
||||||
|
"https://developer.microsoft.com/json-schemas/": true,
|
||||||
|
"https://json-schema.org/": true,
|
||||||
|
"https://json.schemastore.org/": true,
|
||||||
|
"https://raw.githubusercontent.com/devcontainers/spec/": true,
|
||||||
|
"https://raw.githubusercontent.com/microsoft/vscode/": true,
|
||||||
|
"https://schemastore.azurewebsites.net/": true,
|
||||||
|
"https://www.schemastore.org/": true
|
||||||
|
},
|
||||||
|
"python.analysis.typeCheckingMode": "strict",
|
||||||
|
"git.autofetch": true,
|
||||||
|
"git.confirmSync": false
|
||||||
|
}
|
||||||
+2
-2
@@ -2,5 +2,5 @@ export PYENV_ROOT="$HOME/.pyenv"
|
|||||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
eval "$(pyenv init --path)"
|
eval "$(pyenv init --path)"
|
||||||
|
|
||||||
# Created by `pipx` on 2026-07-26 14:32:10
|
# pipx and Antigravity CLI install here
|
||||||
export PATH="$PATH:/home/ian/.local/bin"
|
export PATH="/home/ian/.local/bin:$PATH"
|
||||||
|
|||||||
+24
-22
@@ -3,7 +3,9 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
|
|||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add deno completions to search path
|
# Keep PATH free of duplicates (first occurrence wins).
|
||||||
|
typeset -U path PATH
|
||||||
|
|
||||||
if [[ ":$FPATH:" != *":$HOME/.zsh/completions:"* ]]; then export FPATH="$HOME/.zsh/completions:$FPATH"; fi
|
if [[ ":$FPATH:" != *":$HOME/.zsh/completions:"* ]]; then export FPATH="$HOME/.zsh/completions:$FPATH"; fi
|
||||||
# If you come from bash you might have to change your $PATH.
|
# If you come from bash you might have to change your $PATH.
|
||||||
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
|
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
|
||||||
@@ -11,21 +13,6 @@ if [[ ":$FPATH:" != *":$HOME/.zsh/completions:"* ]]; then export FPATH="$HOME/.z
|
|||||||
# Path to your Oh My Zsh installation.
|
# Path to your Oh My Zsh installation.
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
|
|
||||||
# oh-my-zsh's own compinit call has no caching: it does a full completion
|
|
||||||
# rescan (~300ms here) on every single shell start. If we already have a
|
|
||||||
# same-day dump, load it the fast way ourselves and turn oh-my-zsh's later
|
|
||||||
# call into a no-op. On a stale/missing dump we do nothing here, so
|
|
||||||
# oh-my-zsh falls through to its normal (slow but correct) full rebuild.
|
|
||||||
# If completions ever look stale after changing `plugins=(...)`, run:
|
|
||||||
# rm -f ~/.zcompdump*; exec zsh
|
|
||||||
_zcompdump="${ZDOTDIR:-$HOME}/.zcompdump-${HOST/.*/}-${ZSH_VERSION}"
|
|
||||||
if [[ -n ${_zcompdump}(#qN.mh+24) ]]; then
|
|
||||||
autoload -Uz compinit
|
|
||||||
compinit -C -d "$_zcompdump"
|
|
||||||
compinit() { :; }
|
|
||||||
fi
|
|
||||||
unset _zcompdump
|
|
||||||
|
|
||||||
# Set name of the theme to load --- if set to "random", it will
|
# Set name of the theme to load --- if set to "random", it will
|
||||||
# load a random theme each time Oh My Zsh is loaded, in which case,
|
# load a random theme each time Oh My Zsh is loaded, in which case,
|
||||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||||
@@ -93,9 +80,12 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
|
|||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
plugins=(
|
plugins=(
|
||||||
git sudo extract archlinux docker docker-compose fzf
|
git sudo extract docker docker-compose fzf
|
||||||
zsh-completions you-should-use
|
zsh-completions you-should-use
|
||||||
zsh-autosuggestions zsh-syntax-highlighting zsh-history-substring-search
|
autoswitch_virtualenv
|
||||||
|
zsh-autosuggestions
|
||||||
|
zsh-syntax-highlighting
|
||||||
|
zsh-history-substring-search # must come after zsh-syntax-highlighting
|
||||||
)
|
)
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
@@ -186,13 +176,25 @@ export BUN_INSTALL="$HOME/.bun"
|
|||||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||||
|
|
||||||
# pnpm
|
# pnpm
|
||||||
export PNPM_HOME="$HOME/.local/share/pnpm"
|
export PNPM_HOME="/home/ian/.local/share/pnpm"
|
||||||
case ":$PATH:" in
|
case ":$PATH:" in
|
||||||
*":$PNPM_HOME/bin:"*) ;;
|
*":$PNPM_HOME/bin:"*) ;;
|
||||||
*) export PATH="$PNPM_HOME/bin:$PATH" ;;
|
*) export PATH="$PNPM_HOME/bin:$PATH" ;;
|
||||||
esac
|
esac
|
||||||
# pnpm end
|
# pnpm end
|
||||||
[ -s "$HOME/.deno/env" ] && . "$HOME/.deno/env"
|
|
||||||
|
|
||||||
# Created by `pipx` on 2026-07-26 14:32:10
|
|
||||||
export PATH="$PATH:/home/ian/.local/bin"
|
# Java 17 (Temurin via SDKMAN) and Android SDK, for Android Studio / Gradle builds.
|
||||||
|
export JAVA_HOME="$HOME/.sdkman/candidates/java/17.0.20-tem"
|
||||||
|
export ANDROID_HOME="$HOME/Android/Sdk"
|
||||||
|
export PATH="$JAVA_HOME/bin:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator:$PATH"
|
||||||
|
|
||||||
|
|
||||||
|
# Resend CLI
|
||||||
|
export PATH="$HOME/.resend/bin:$PATH"
|
||||||
|
|
||||||
|
export PATH="/home/ian/depot_tools:$PATH"
|
||||||
|
|
||||||
|
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
|
||||||
|
export SDKMAN_DIR="$HOME/.sdkman"
|
||||||
|
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user