From 43973a1d68558f60f5609cd67d4584b27ef0eb3a Mon Sep 17 00:00:00 2001 From: thek4n Date: Thu, 23 Jan 2025 00:29:59 +0300 Subject: [PATCH] add note to target --- TARGETS.sh | 3 ++- install-hooks/note/pre-install | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 install-hooks/note/pre-install diff --git a/TARGETS.sh b/TARGETS.sh index 730485b..f2e64a4 100644 --- a/TARGETS.sh +++ b/TARGETS.sh @@ -3,6 +3,7 @@ colors:.config/terminal-colors.d less:.lesskey .infokey tmux:.config/tmux .tmux .config/systemd/user/tmux.service .local/bin/tmux_start_session.sh .local/bin/tmux_list_sessions.sh .local/bin/tmux_attach_session.sh .local/bin/tmux_kill_sessions.sh t: +note: zsh:.config/zsh .zshenv .inputrc %colors alacritty:.config/alacritty nvim:.config/nvim .editorconfig .editrc .local/bin/vim_askpass_helper @@ -21,4 +22,4 @@ ipython:.ipython/profile_default/ipython_config.py gdb:.config/gdb sandbox: utils: .local/bin/myip .local/bin/genpass .local/bin/gensalt .local/bin/django-create-project .local/bin/mirror-site .local/bin/split-file .local/bin/extract .local/bin/destroy -all:%less %t %tmux %zsh %nvim %git" \ No newline at end of file +all:%less %t %note %tmux %zsh %nvim %git" diff --git a/install-hooks/note/pre-install b/install-hooks/note/pre-install new file mode 100755 index 0000000..0683b6b --- /dev/null +++ b/install-hooks/note/pre-install @@ -0,0 +1,14 @@ +#!/bin/sh + +set -eu + +tempdir="$(mktemp -d)" +readonly tempdir + +( + cd "${tempdir}" + git clone https://github.com/thek4n/note.git . + make install +) + +rm -rf "${tempdir}"