automate/020_zsh_zgenom.sh

54 lines
1.8 KiB
Bash

# NB. zsh-quickstart has adopted zgenom so functionality I have time to strip down the size of quickstart this is redundant.
# Goal replace zgen with zgenom and remove zsh-quickstart leaving only
# the functionality that is useful and quick. Dropping most of ohmyzsh.
# ~/.zshrc snippet I ended up with that so far works perfectly on all my servers.
#cat >> ${HOME}/.zshrc <<EOF
#
#if [[ ! -f "${HOME}/.zgenom/zgenom.zsh" ]]; then
# git clone http://github.com/jandamm/zgenom.git "${HOME}/.zgenom"
#fi
#source "${HOME}/.zgenom/zgenom.zsh"
#
## check for updates ever 7 days
#zgenom autoupdate
#
## only runs when .zgenom/sources/init.zsh doesn't exist
## use zgenom reset to delete init.zsh
#if ! zgenom saved; then
# zgenom load zsh-users/zsh-autosuggestions
# zgenom load zsh-users/zsh-syntax-highlighting
# zgenom load marlonrichert/zsh-autocomplete
# zgenom load mafredri/zsh-async
# zgenom load sindresorhus/pure
# zgenom load ${HOME}/.zsh/iterm2_shell_integration.zsh
# zgenom save
#fi
#EOF
# powerlevel10k prompt with instant prompt enabled
# zgenom load zsh-users/zsh-autosuggestions
#cat >> ${HOME}/.zshrc <<EOF
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block, everything else may go below.
#if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
# source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
#fi
#EOF
#cat >> ${HOME}/.zshrc <<EOF
# Always work in a tmux session if tmux is installed
# http://github.com/chrishunt/dot-files/blob/master/.zshrc
#if which tmux 2>&1 >/dev/null; then
# if [ $TERM != "screen-256color" ] && [ $TERM != "screen" ]; then
# tmux attach -t hack || tmux new -s hack; exit
# fi
#fi
#EOF