feat(zsh): zcompile after install

This commit is contained in:
thek4n 2024-01-08 01:17:59 +03:00
parent c6b4f0af38
commit f6b4c7e0ce
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
cat > "$HOME/.config/bash/bashrc.d/01_tmux.sh" << EOF cat > "$HOME/.config/bash/bashrc.d/01_tmux.sh" << EOF
if command -v tmux 1>/dev/null && [[ -z "\$TMUX" ]] && [[ ! "\$TERM" =~ tmux ]]; then if command -v tmux 1>/dev/null && [[ -z "\$TMUX" ]] && [[ ! "\$TERM" =~ tmux ]]; then
exec tmux new exec tmux new

5
install-hooks/zsh/post-install Executable file
View File

@ -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