From 0f52c02146530bb9e1459d52fdf9d77e9e8c0527 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 30 Nov 2026 17:02:05 +0100 Subject: [PATCH] scripts --- Makefile | 5 +++-- README.md | 8 +++++++- aliases | 10 ---------- scripts/normify | 9 +++++++++ scripts/pycheck | 7 +++++++ 5 files changed, 26 insertions(+), 13 deletions(-) delete mode 100644 aliases create mode 100755 scripts/normify create mode 100755 scripts/pycheck diff --git a/Makefile b/Makefile index 4d6442d..523c12a 100644 --- a/Makefile +++ b/Makefile @@ -6,14 +6,15 @@ stow: unstow: stow -D nvim ghostty emacs +# if stow is not available, symlink configs instead +# TODO: this is currently outdated + LN := ln -svf LNDIR := ln -sv DOTFILES_DIR := $(shell pwd) TARGET_DIR := $(HOME) -# if stow is not available, symlink configs instead -# this is currently outdated .PHONY: link unlink link: nvim diff --git a/README.md b/README.md index d4ec3db..8b113a0 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,10 @@ # Usage -Run `make stow` +Run `make stow`. + +Add the `./scripts` contents to the path for ez codin + +```sh +export PATH="$PATH:$HOME/dotfiles/scripts" +``` diff --git a/aliases b/aliases deleted file mode 100644 index d3121dd..0000000 --- a/aliases +++ /dev/null @@ -1,10 +0,0 @@ -# https://pypi.org/project/c-formatter-42/ -# install via -# pip3 install --user c-formatter-42 -normify(){ - c_formatter_42 *.c *.h -} - -pycheck(){ - flake8 --color=never . && echo "Success: flake8" && mypy --strict . -} diff --git a/scripts/normify b/scripts/normify new file mode 100755 index 0000000..2c5a0aa --- /dev/null +++ b/scripts/normify @@ -0,0 +1,9 @@ +#!/bin/bash + +set -euo pipefail + +# https://pypi.org/project/c-formatter-42/ +# install via +# pip3 install --user c-formatter-42 + +c_formatter_42 *.c *.h diff --git a/scripts/pycheck b/scripts/pycheck new file mode 100755 index 0000000..2e38b84 --- /dev/null +++ b/scripts/pycheck @@ -0,0 +1,7 @@ +#!/bin/bash + +set -euo pipefail + +flake8 --color=never . && echo "Success: flake8" + +mypy --strict .