From f6b4c7e0ce7f836c046fa797bd2392df2d0c7465 Mon Sep 17 00:00:00 2001 From: thek4n Date: Mon, 8 Jan 2024 01:17:59 +0300 Subject: [PATCH] feat(zsh): zcompile after install --- install-hooks/termux/post-install | 2 ++ install-hooks/zsh/post-install | 5 +++++ 2 files changed, 7 insertions(+) create mode 100755 install-hooks/zsh/post-install diff --git a/install-hooks/termux/post-install b/install-hooks/termux/post-install index 66e13bf..ae2ff5f 100755 --- a/install-hooks/termux/post-install +++ b/install-hooks/termux/post-install @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + cat > "$HOME/.config/bash/bashrc.d/01_tmux.sh" << EOF if command -v tmux 1>/dev/null && [[ -z "\$TMUX" ]] && [[ ! "\$TERM" =~ tmux ]]; then exec tmux new diff --git a/install-hooks/zsh/post-install b/install-hooks/zsh/post-install new file mode 100755 index 0000000..ac256db --- /dev/null +++ b/install-hooks/zsh/post-install @@ -0,0 +1,5 @@ +#!/usr/bin/env zsh + +for zfile in .zshrc .zprofile .zlogout .config/zsh/aliases .config/zsh/completion .config/zsh/history .config/zsh/options .config/zsh/other .config/zsh/plugin .config/zsh/prompt .config/zsh/sourcer; do + zcompile "$HOME/$zfile" +done