cleanup
This commit is contained in:
21
Makefile
21
Makefile
@@ -1,26 +1,15 @@
|
|||||||
|
# prefer this if stow is available
|
||||||
|
.PHONY: stow
|
||||||
stow:
|
stow:
|
||||||
stow nvim
|
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
|
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
|
||||||
.PHONY: link
|
.PHONY: link
|
||||||
link: nvim
|
link: nvim
|
||||||
|
|
||||||
@@ -33,7 +22,3 @@ nvim:
|
|||||||
git:
|
git:
|
||||||
rm -f $(TARGET_DIR)/.gitconfig
|
rm -f $(TARGET_DIR)/.gitconfig
|
||||||
$(LN) $(DOTFILES_DIR)/git/.gitconfig $(TARGET_DIR)/.gitconfig
|
$(LN) $(DOTFILES_DIR)/git/.gitconfig $(TARGET_DIR)/.gitconfig
|
||||||
|
|
||||||
# zsh:
|
|
||||||
# $(LN) ./zsh/.zshrc ~/.zshrc
|
|
||||||
# $(LN) ./zsh/.zprofile ~/.zprofile
|
|
||||||
|
|||||||
6
aliases
6
aliases
@@ -2,6 +2,7 @@ cc-clean(){
|
|||||||
rm -rf ./**/*.out 2>/dev/null
|
rm -rf ./**/*.out 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# compile and run a single C program. Useful for prototyping.
|
||||||
cc-run(){
|
cc-run(){
|
||||||
local file
|
local file
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
@@ -12,11 +13,6 @@ cc-run(){
|
|||||||
file="$1"
|
file="$1"
|
||||||
shift
|
shift
|
||||||
|
|
||||||
#if command -v norminette &>/dev/null
|
|
||||||
#then
|
|
||||||
# norminette "${file}" -R CheckForbiddenSourceHeader
|
|
||||||
#fi
|
|
||||||
|
|
||||||
gcc "${file}" -o "${file}.out" -Wall -Wextra -Werror -g3 -fsanitize=address $@ && \
|
gcc "${file}" -o "${file}.out" -Wall -Wextra -Werror -g3 -fsanitize=address $@ && \
|
||||||
"./${file}.out"
|
"./${file}.out"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user