My dotfiles library
git clone https://github.com/kettil/dotfiles ~/.dotfiles
# on mac
xcode-select --install
# command for install and update
cd ~/.dotfiles && ./setup.shThe font of the terminal must be Droid+Sans+Mono+Awesome.ttf
All scripts/bin folders are defined in the variable $PATH.
It is possible to customize the zshrc per pre/post files.
~/.zshrc_pre.zsh- Is called before the initiation ofoh-my-zsh~/.zshrc_post.zsh- Is called at the end
All static dotfiles are stored in the ./configs folder. Via ./setup.sh the files are linked to the home directory. The folder structure of configs is kept in the home directory.
The following aliases are defined:
mkcdir- create a folder and calls upon thiscode- starts Visual Basic Code, if installed (only mac)ios- starts iOS Simulator, if xCode is installed (only mac)fileMerge- starts FileMerge simulator, if xCode is installed (only mac)server-8080- start a web server in the current order, if docker is installed
List of all scripts in ./bin.
color-table.sh- showed a color table in the shell (with color codes)sleeps- sleeps is an extension ofsleepwith a visual representation of the waiting time
Homebrew is a package manager for macOS.
The following scripts are installed:
| Category | Packages |
|---|---|
| Application | hex-fiend |
| Development | nvm (node.js), docker, helm, postman, grex |
| Fuse | osxfuse, sshfs |
| Monitoring | htop, iftop |
| Networking | fping, nmap, speedtest-cli |
| gs, qpdf | |
| Shell | zsh |
| System Tools | coreutils, moreutils, findutils, f3, git, git-lfs, nano, p7zip, tree, unrar, wget, gnupg, jq, csvq, fzf, fd, bat, exa, grep, openssh, screen |
| Videos | atomicparsley, ffmpeg, mkvtoolnix, mp4v2, youtube-dl |
List of all scripts in ./brew-bin.
flash-check.sh- checks flash memory cards for their size (e.g.flash-check.sh /path/to/flashcard). The flash memory card should be empty.pdf-merged.sh- merges many PDF files into one (e.g.pdf-merged.sh 1.pdf 2.pdf).pdf-smaller.sh- reduce the size of a PDF, if possible (e.g.pdf-smaller.sh 1.pdf).
The container files are in ./docker and the associated scripts in ./docker-bin. When a script is called and the container does not exist, it is automatically built.
Containers can be created and deleted manually:
- dotfiles-docker-build-<container name> (e.g.
dotfiles-docker-build-latex) - dotfiles-docker-rm-<container name> (e.g.
dotfiles-docker-rm-latex)
You can also create or delete all containers at once:
- dotfiles-docker-all-build
- dotfiles-docker-all-rm
- hadolint - a Dockerfile linter
hadolint
- LaTeX - a container with texlive.
pdflatexxelatex
- Pandoc - a container with pandoc.
pandocpandoc-pdf(uses the LaTeX container)pandoc-letter(uses the LaTeX container)
Create a german DIN 676 letter from a markdown file. The LaTeX template for the letter is located at pandoc/templates/letter.latex.
In folder example/pandoc-pdf is an example.
The script pandoc-letter letter.md must be called in this folder.
Converts a Markdown file to a PDF file. The template Eisvogel is used.
If kubectl is installed, then the following tools are installed additionally.
