1
0
Fork 0

separate completions functions

This commit is contained in:
Maurice Audin 2020-04-29 12:03:50 +02:00
parent c1484b5312
commit 8e067be0b1
3 changed files with 9 additions and 8 deletions

3
hybris.completions Normal file
View file

@ -0,0 +1,3 @@
# Some completions
compctl -K _completemarks j
compdef _path_commands catwhich

View file

@ -40,7 +40,3 @@ export PATH=$HOME/.scripts:$PATH
export READNULLCMD=${PAGER:-/usr/bin/pager} export READNULLCMD=${PAGER:-/usr/bin/pager}
export WATCH=all export WATCH=all
export WATCHFMT="%n has %a %l from %M" export WATCHFMT="%n has %a %l from %M"
# Some completions
compctl -K _completemarks j
compdef _path_commands catwhich

10
zshrc
View file

@ -7,12 +7,14 @@ source "${HOME}/.zgen/zgen.zsh"
# Plugins and configuration generator # # Plugins and configuration generator #
####################################### #######################################
if ! zgen saved; then if ! zgen saved; then
# Personnal configuration # Configuration
zgen load hybris42/zsh ${USER}.zsh zgen load hybris42/zsh ${USER}.zsh
# Theme
zgen load hybris42/zsh ${USER}.theme zgen load hybris42/zsh ${USER}.theme
# Plugins
# Personnal plugins zgen load hybris42/zsh ${USER}.plugins
source ${HOME}/.zgen/hybris42/zsh-master/hybris.plugins # Completions
zgen load hybris42/zsh ${USER}.completions
# generate the init script from plugins above # generate the init script from plugins above
zgen save zgen save