adjust completion in zsh
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -4,3 +4,6 @@
|
||||
[submodule "scripts/pokemon-colorscripts"]
|
||||
path = scripts/pokemon-colorscripts
|
||||
url = https://gitlab.com/phoneybadger/pokemon-colorscripts.git
|
||||
[submodule "zsh/zsh-autosuggestions"]
|
||||
path = zsh/zsh-autosuggestions
|
||||
url = https://github.com/zsh-users/zsh-autosuggestions
|
||||
|
||||
@@ -31,8 +31,11 @@ esac
|
||||
bindkey "^[[1;5C" forward-word
|
||||
bindkey "^[[1;5D" backward-word
|
||||
|
||||
# Set fpath before sourcing completion.zsh
|
||||
fpath=("$DOTFILES/zsh/zsh-completions/src" $fpath)
|
||||
# Source completion configuration
|
||||
source "$DOTFILES/zsh/completion.zsh"
|
||||
fpath=("$DOTFILES/zsh/zsh-completions/src" "$fpath")
|
||||
source "$DOTFILES/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
||||
|
||||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
|
||||
@@ -1,26 +1,9 @@
|
||||
# ____ ___ __ __ ____ _ _____ _____ ___ ___ _ _
|
||||
# / ___/ _ \| \/ | _ \| | | ____|_ _|_ _/ _ \| \ | |
|
||||
# | | | | | | |\/| | |_) | | | _| | | | | | | | \| |
|
||||
# | |__| |_| | | | | __/| |___| |___ | | | | |_| | |\ |
|
||||
# \____\___/|_| |_|_| |_____|_____| |_| |___\___/|_| \_|
|
||||
#
|
||||
|
||||
# +---------+
|
||||
# | General |
|
||||
# +---------+
|
||||
|
||||
# source ./gambit.zsh
|
||||
|
||||
# Should be called before compinit
|
||||
zmodload zsh/complist
|
||||
|
||||
autoload -U compinit; compinit
|
||||
_comp_options+=(globdots) # With hidden files
|
||||
|
||||
# Only work with the Zsh function vman
|
||||
# See $DOTFILES/zsh/scripts.zsh
|
||||
compdef vman="man"
|
||||
|
||||
# +---------+
|
||||
# | Options |
|
||||
# +---------+
|
||||
|
||||
1
zsh/zsh-autosuggestions
Submodule
1
zsh/zsh-autosuggestions
Submodule
Submodule zsh/zsh-autosuggestions added at 0e810e5afa
Reference in New Issue
Block a user