Move plugins to plugin directory
This commit is contained in:
parent
aaea526054
commit
9d46615a56
20
zsh/_fedit
20
zsh/_fedit
@ -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=(
|
||||
|
@ -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
17
zsh/plugins/fedit.zsh
Normal 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
|
@ -1,6 +1,4 @@
|
||||
#compdef fless
|
||||
|
||||
# ========== Shortcuts ==========
|
||||
# Fuzzy-find a file and open it in less
|
||||
fless() {
|
||||
/usr/bin/fless
|
||||
zle reset-prompt
|
@ -1,7 +1,5 @@
|
||||
#compdef mkcd
|
||||
# Make a directory, then change into it
|
||||
|
||||
# ========== Shortcuts ==========
|
||||
mkcd() {
|
||||
[[ ! -d "${1}" ]] && mkdir --parents -- "${1}"
|
||||
cd "${1}" || exit
|
Loading…
x
Reference in New Issue
Block a user