https://github.com/vidhill/dotfiles-snippets
Dotfiles and snippets
https://github.com/vidhill/dotfiles-snippets
dotfiles snippets
Last synced: 2 months ago
JSON representation
Dotfiles and snippets
- Host: GitHub
- URL: https://github.com/vidhill/dotfiles-snippets
- Owner: vidhill
- Created: 2017-06-28T14:36:47.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2024-10-18T15:25:41.000Z (8 months ago)
- Last Synced: 2025-03-19T03:56:02.272Z (3 months ago)
- Topics: dotfiles, snippets
- Language: Shell
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotfiles-snippets
Just a space to store my Dotfiles and some snippets
## Cheatsheets
- [Docker](notes-cheatsheets/docker.md)
- [Git](notes-cheatsheets/git.md)
- [Networking](notes-cheatsheets/networking.md)
- [Command line](notes-cheatsheets/command_line.md)
- [Kubernetes - kubectl](notes-cheatsheets/kubernetes.md)#### Use `shfmt` to format all bash scriptsi
Run
```bash
$ make lint-bash-scripts
```Install tool
```bash
$ brew install shfmt
```#### Use prettier to prettify all markdown files
```bash
$ make format-md
```### Set up spell check pre-commit hook
#### Prerequisites
Copy over custom dictionary
```bash
$ cp git-hooks/.dict.en.pws ~/.config/git/.dict.en.pws
```Copy helper script into local `bin` folder
```bash
chmod +x git-hooks/aspell-add-word.sh; cp git-hooks/aspell-add-word.sh ~/bin/aspell-add-word.sh
```#### Copy hook
```bash
$ chmod +x git-hooks/commit-msg-spell-check.sh; cp git-hooks/commit-msg-spell-check.sh .git/hooks/commit-msg
```