From fee227e2ae5d083ee170fbddab123c55765dd63e Mon Sep 17 00:00:00 2001 From: Roman Date: Sat, 27 Jun 2026 14:56:54 +0200 Subject: [PATCH] cleanup --- Makefile | 21 +++------------------ aliases | 6 +----- 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/Makefile b/Makefile index 0125e81..914cc4e 100644 --- a/Makefile +++ b/Makefile @@ -1,26 +1,15 @@ +# prefer this if stow is available +.PHONY: stow stow: stow nvim -# stow-server: -# stow default zsh-server lazygit albert tmux neovim ranger - -# rm: -# rm ~/.zshrc ~/.p10k.zsh ~/.tmux.conf ~/.docker_aliases ~/.config/albert/albert.conf ~/.config/nvim/init.vim ~/.config/ranger/rc.conf ~/.config/kitty/kitty.conf -# echo "this might delete files from this repository also" - -# link-root: -# sudo rm -rf /root/.oh-my-zsh /root/.zshrc /root/.p10k.zsh /root/.docker_aliases -# sudo ln -s ${HOME}/.oh-my-zsh /root/ -# sudo ln -s ${HOME}/.zshrc /root/ -# sudo ln -s ${HOME}/.p10k.zsh /root/ -# sudo ln -s ${HOME}/.docker_aliases /root/ - LN := ln -svf LNDIR := ln -sv DOTFILES_DIR := $(shell pwd) TARGET_DIR := $(HOME) +# if stow is not available, symlink configs instead .PHONY: link link: nvim @@ -33,7 +22,3 @@ nvim: git: rm -f $(TARGET_DIR)/.gitconfig $(LN) $(DOTFILES_DIR)/git/.gitconfig $(TARGET_DIR)/.gitconfig - -# zsh: -# $(LN) ./zsh/.zshrc ~/.zshrc -# $(LN) ./zsh/.zprofile ~/.zprofile diff --git a/aliases b/aliases index a7859b3..fed39a7 100644 --- a/aliases +++ b/aliases @@ -2,6 +2,7 @@ cc-clean(){ rm -rf ./**/*.out 2>/dev/null } +# compile and run a single C program. Useful for prototyping. cc-run(){ local file if [ -z "$1" ]; then @@ -12,11 +13,6 @@ cc-run(){ file="$1" shift - #if command -v norminette &>/dev/null - #then - # norminette "${file}" -R CheckForbiddenSourceHeader - #fi - gcc "${file}" -o "${file}.out" -Wall -Wextra -Werror -g3 -fsanitize=address $@ && \ "./${file}.out"