scripts
This commit is contained in:
@@ -6,14 +6,15 @@ stow:
|
|||||||
unstow:
|
unstow:
|
||||||
stow -D nvim ghostty emacs
|
stow -D nvim ghostty emacs
|
||||||
|
|
||||||
|
# if stow is not available, symlink configs instead
|
||||||
|
# TODO: this is currently outdated
|
||||||
|
|
||||||
LN := ln -svf
|
LN := ln -svf
|
||||||
LNDIR := ln -sv
|
LNDIR := ln -sv
|
||||||
|
|
||||||
DOTFILES_DIR := $(shell pwd)
|
DOTFILES_DIR := $(shell pwd)
|
||||||
TARGET_DIR := $(HOME)
|
TARGET_DIR := $(HOME)
|
||||||
|
|
||||||
# if stow is not available, symlink configs instead
|
|
||||||
# this is currently outdated
|
|
||||||
.PHONY: link unlink
|
.PHONY: link unlink
|
||||||
link: nvim
|
link: nvim
|
||||||
|
|
||||||
|
|||||||
@@ -4,4 +4,10 @@
|
|||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
Run `make stow`
|
Run `make stow`.
|
||||||
|
|
||||||
|
Add the `./scripts` contents to the path for ez codin
|
||||||
|
|
||||||
|
```sh
|
||||||
|
export PATH="$PATH:$HOME/dotfiles/scripts"
|
||||||
|
```
|
||||||
|
|||||||
@@ -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 .
|
|
||||||
}
|
|
||||||
Executable
+9
@@ -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
|
||||||
Executable
+7
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
flake8 --color=never . && echo "Success: flake8"
|
||||||
|
|
||||||
|
mypy --strict .
|
||||||
Reference in New Issue
Block a user