Added a few scripts to make my life a tiny bit easier; updated some things (i forgor)
This commit is contained in:
parent
7ac1098ec5
commit
c4ebdccebe
6 changed files with 62 additions and 11 deletions
15
README.md
15
README.md
|
|
@ -32,20 +32,25 @@ This is made for my Thinkpad L490 with Void Linux + MangoWM
|
|||

|
||||
|
||||
### Installation
|
||||
#### WARNING THIS WILL REPLACE ALL EXISTING DOTFILES WITH THE ONES IN THIS REPO
|
||||
|
||||
#### WARNING THIS MIGHT REPLACE ALL EXISTING DOTFILES WITH THE ONES IN THIS REPO
|
||||
|
||||
Firstly clone this repo and enter it:
|
||||
```bash
|
||||
git clone https://codeberg.org/MysteryBirb/Zoe-Dotfiles.git; cd Zoe-Dotfiles
|
||||
```
|
||||
Then use stow to symlink all the dotfiles to their destination:
|
||||
The use my small script based off `stow` to update or link all dotfiles:
|
||||
|
||||
For all:
|
||||
```bash
|
||||
stow *
|
||||
./zstow
|
||||
```
|
||||
or for one specific config (e.g. neovim):
|
||||
|
||||
Updating:
|
||||
```bash
|
||||
./zstow update
|
||||
```
|
||||
|
||||
For specific dotfiles you can just use stow (e.g. neovim):
|
||||
```bash
|
||||
stow nvim
|
||||
```
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
;; -*- lexical-binding: nil -*-
|
||||
;; -*- lexical-binding: nil; -*-
|
||||
|
||||
;; Keybind reminder for self:
|
||||
;; C-x C-f : enter a file / find one
|
||||
|
|
@ -15,6 +15,7 @@
|
|||
;; M-x cd : change dir duh
|
||||
;; M-y : to paste into vterm or generally
|
||||
;; M-x package-list-packages RET Ux : updates packages
|
||||
;; M-x eglot-inlay-hints-mode : cool info for code
|
||||
;; M-ESC : Escapes corfu prompt
|
||||
;; C-g : Escapes emacs command line
|
||||
|
||||
|
|
@ -64,7 +65,6 @@
|
|||
;; Vterm
|
||||
(use-package vterm
|
||||
:config
|
||||
(setq vterm-shell 'bash)
|
||||
(add-hook 'vterm-mode-hook (lambda () (setq evil-default-state 'emacs)))
|
||||
:ensure t)
|
||||
|
||||
|
|
@ -72,7 +72,11 @@
|
|||
(use-package qml-mode :ensure t)
|
||||
|
||||
;; LSP / Eglot
|
||||
|
||||
(setq eglot-ignored-server-capabilities '(:documentOnTypeFormattingProvider :documentFormattingProvider :documentRangeFormattingProvider))
|
||||
|
||||
;; (add-hook 'nix-mode-hook #'eglot-ensure) ;;(for nix)
|
||||
(add-hook 'eglot-managed-mode-hook (lambda () (eglot-inlay-hints-mode -1)))
|
||||
(add-hook 'c-mode-hook 'eglot-ensure)
|
||||
(add-hook 'c++-mode-hook 'eglot-ensure)
|
||||
(add-hook 'qml-mode-hook 'eglot-ensure)
|
||||
|
|
@ -143,21 +147,21 @@
|
|||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(base16-theme-highlight-mode-line 'box)
|
||||
'(eglot-ignored-server-capabilities
|
||||
'(:documentFormattingProvider :documentRangeFormattingProvider))
|
||||
'(package-selected-packages '(evil)))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
|
||||
;; Removing ass boxes and making theme be "smooth"
|
||||
'(default ((t (:box nil :background "#1e0a28" :foreground "#ffffff"))))
|
||||
'(font-lock-comment-face ((t (:foreground "#656565"))))
|
||||
'(font-lock-comment-delimiter-face ((t (:foreground "#656565"))))
|
||||
'(ansi-color-fast-blick ((t (:box nil))))
|
||||
'(ansi-color-slow-blick ((t (:box nil))))
|
||||
'(corfu-border ((t (:background nil))))
|
||||
'(cursor ((t (:inherit t :background "#506050" :foreground "#000000"))))
|
||||
'(font-lock-comment-delimiter-face ((t (:foreground "#656565"))))
|
||||
'(font-lock-comment-face ((t (:foreground "#656565"))))
|
||||
'(fringe ((t nil)))
|
||||
'(help-key-binding ((t (:box nil))))
|
||||
'(line-number ((t (:foreground "#504050" :background "#1e0a28"))))
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
# locked-title=no
|
||||
|
||||
font=NotoSansM Nerd Font:size=12
|
||||
# font=Iosevka:size=12
|
||||
# font-bold=<bold variant of regular font>
|
||||
# font-italic=<italic variant of regular font>
|
||||
# font-bold-italic=<bold+italic variant of regular font>
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 3.4 MiB |
34
zgit
Executable file
34
zgit
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
#!/bin/bash
|
||||
# This is just to update my git repo a tiny bit faster
|
||||
|
||||
usage() { echo "Usage: $0 [-a \"<string>\"] [-s <file>]" 1>&2; exit 1; }
|
||||
|
||||
while getopts "a:s:" o; do
|
||||
case "${o}" in
|
||||
a)
|
||||
a=${OPTARG}
|
||||
git add .
|
||||
git commit -m "$a"
|
||||
git push
|
||||
exit 0
|
||||
;;
|
||||
s)
|
||||
s=${OPTARG}
|
||||
if [ -f $s ]; then
|
||||
git add $s
|
||||
read -p "Commit message: " commitMsg
|
||||
tmp="${commitMsg%\"}"
|
||||
tmp="${tmp#\"}"
|
||||
git commit -m "$tmp"
|
||||
git push
|
||||
else
|
||||
echo "$s is not a regular file!"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
;;
|
||||
esac
|
||||
done
|
||||
#shift $((OPTIND-1))
|
||||
7
zstow
Executable file
7
zstow
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Had to make this because i couldn't figure out how ".stow-local-igmore" works smh
|
||||
if [ "${1,,}" == "update" ]; then
|
||||
stow -v -R */
|
||||
else
|
||||
stow -v */
|
||||
fi
|
||||
Loading…
Reference in a new issue