Move plugins to plugin directory

This commit is contained in:
Eric Torres 2019-03-01 16:49:17 -08:00
parent aaea526054
commit 9d46615a56
5 changed files with 18 additions and 36 deletions

View File

@ -1,24 +1,4 @@
#compdef fedit
# Fuzzy find a file and then edit it
# ========== Shortcuts ==========
_fedit() {
/usr/bin/fedit
zle reset-prompt
}
_etcedit() {
/usr/bin/fedit --etc
zle reset-prompt
}
zle -N fedit
bindkey -M viins '^o' _fedit
zle -N _etcedit
bindkey -M viins '^e' _etcedit
# ========== Completions ==========
local arguments
arguments=(

View File

@ -1,4 +1,3 @@
#compdef fcd
# Fuzzy cd from anywhere
# Dependencies
# * fzf
@ -21,13 +20,3 @@ cf() {
}
autoload -Uz cf
# ========== Completions ==========
local arguments
arguments=(
$argument_list
'*:filename:_files'
)
_arguments -s $arguments

17
zsh/plugins/fedit.zsh Normal file
View File

@ -0,0 +1,17 @@
# Fuzzy find a file and then edit it
_fedit() {
/usr/bin/fedit
zle reset-prompt
}
_etcedit() {
/usr/bin/fedit --etc
zle reset-prompt
}
zle -N _fedit
bindkey -M viins '^o' _fedit
zle -N _etcedit
bindkey -M viins '^e' _etcedit

View File

@ -1,6 +1,4 @@
#compdef fless
# ========== Shortcuts ==========
# Fuzzy-find a file and open it in less
fless() {
/usr/bin/fless
zle reset-prompt

View File

@ -1,7 +1,5 @@
#compdef mkcd
# Make a directory, then change into it
# ========== Shortcuts ==========
mkcd() {
[[ ! -d "${1}" ]] && mkdir --parents -- "${1}"
cd "${1}" || exit