further cleanup / migration to zcomet
This commit is contained in:
parent
7c9cb72201
commit
378038e03e
|
@ -20,5 +20,8 @@ ln -s $PATH_PREFIX/tmux.conf ~/.tmux.conf
|
||||||
rm ~/.zshrc
|
rm ~/.zshrc
|
||||||
ln -s $PATH_PREFIX/zshrc ~/.zshrc
|
ln -s $PATH_PREFIX/zshrc ~/.zshrc
|
||||||
|
|
||||||
echo "install 'exa fd bat tmux htop nano most emacs zsh' if needed"
|
rm ~/.fzf.zsh
|
||||||
|
ln -s $PATH_PREFIX/fzf.zsh ~/.fzf.zsh
|
||||||
|
|
||||||
|
echo "install 'exa fd bat tmux htop nano most ripgrep emacs zsh' if needed"
|
||||||
echo "copy restic.sh if desired/needed"
|
echo "copy restic.sh if desired/needed"
|
||||||
|
|
13
fzf.zsh
Normal file
13
fzf.zsh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# Setup fzf
|
||||||
|
# ---------
|
||||||
|
if [[ ! "$PATH" == *~/.zcomet/repos/junegunn/fzf/bin* ]]; then
|
||||||
|
export PATH="${PATH:+${PATH}:}~/.zcomet/repos/junegunn/fzf/bin"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Auto-completion
|
||||||
|
# ---------------
|
||||||
|
[[ $- == *i* ]] && source "~/.zcomet/repos/junegunn/fzf/shell/completion.zsh" 2> /dev/null
|
||||||
|
|
||||||
|
# Key bindings
|
||||||
|
# ------------
|
||||||
|
source "${HOME}/.zcomet/repos/junegunn/fzf/shell/key-bindings.zsh"
|
46
zshrc
46
zshrc
|
@ -6,29 +6,34 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
|
||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# zplug
|
# zcomet install
|
||||||
source ~/.zplug/init.zsh
|
if [[ ! -f ${ZDOTDIR:-${HOME}}/.zcomet/bin/zcomet.zsh ]]; then
|
||||||
zplug "zplug/zplug", hook-build:"zplug --self-manage"
|
command git clone https://github.com/agkozak/zcomet.git ${ZDOTDIR:-${HOME}}/.zcomet/bin
|
||||||
zplug "romkatv/powerlevel10k", as:theme, depth:1
|
|
||||||
|
|
||||||
#zplug "popstas/zsh-command-time"
|
|
||||||
zplug "zsh-users/zsh-syntax-highlighting", defer:2
|
|
||||||
zplug "ytakahashi/igit"
|
|
||||||
if [[ -n "${TMUX}" ]]; then
|
|
||||||
zplug "mbenford/zsh-tmux-auto-title"
|
|
||||||
fi
|
fi
|
||||||
#zplug "MichaelAquilina/zsh-you-should-use"
|
|
||||||
|
|
||||||
zplug "junegunn/fzf", from:github, as:command, rename-to:fzf, hook-build:"./install --all"
|
# zcomit + shell line activation
|
||||||
zplug "junegunn/fzf", use:"shell/*.zsh", defer:2
|
source ${ZDOTDIR:-${HOME}}/.zcomet/bin/zcomet.zsh
|
||||||
zplug "Aloxaf/fzf-tab", from:github
|
zcomet load romkatv/powerlevel10k
|
||||||
zplug "alexiszamanidis/zsh-git-fzf"
|
|
||||||
#zplug "ddnexus/fm", hook-build:"./fm__compile"
|
|
||||||
zplug "larkery/zsh-histdb"
|
|
||||||
#zplug "m42e/zsh-histdb-fzf"
|
|
||||||
zplug 'm42e/zsh-histdb-skim', from:github, at:main
|
|
||||||
|
|
||||||
zplug load
|
# misc plugins
|
||||||
|
zcomet load zsh-users/zsh-syntax-highlighting
|
||||||
|
zcomet load ytakahashi/igit
|
||||||
|
if [[ -n "${TMUX}" ]]; then
|
||||||
|
zcomet load mbenford/zsh-tmux-auto-title
|
||||||
|
fi
|
||||||
|
|
||||||
|
# fzf
|
||||||
|
zcomet load junegunn/fzf shell completion.zsh key-bindings.zsh
|
||||||
|
(( ${+commands[fzf]} )) || ~[fzf]/install --bin
|
||||||
|
zcomet load Aloxaf/fzf-tab
|
||||||
|
#zcomet load ddnexus/fm
|
||||||
|
|
||||||
|
# history
|
||||||
|
zcomet load larkery/zsh-histdb
|
||||||
|
zcomet load m42e/zsh-histdb-skim
|
||||||
|
|
||||||
|
# Run compinit and compile its cache
|
||||||
|
zcomet compinit
|
||||||
|
|
||||||
# zsh options
|
# zsh options
|
||||||
autoload run-help
|
autoload run-help
|
||||||
|
@ -59,7 +64,6 @@ setopt append_history
|
||||||
setopt share_history
|
setopt share_history
|
||||||
|
|
||||||
# zsh plugin options
|
# zsh plugin options
|
||||||
#ZSH_COMMAND_TIME_MIN_SECONDS=10
|
|
||||||
if [[ -n "${TMUX}" ]]; then
|
if [[ -n "${TMUX}" ]]; then
|
||||||
ZSH_TMUX_AUTO_TITLE_SHORT=true
|
ZSH_TMUX_AUTO_TITLE_SHORT=true
|
||||||
ZSH_TMUX_AUTO_TITLE_IDLE_TEXT="%last"
|
ZSH_TMUX_AUTO_TITLE_IDLE_TEXT="%last"
|
||||||
|
|
Loading…
Reference in a new issue