Remove zsh plugin files

This commit is contained in:
Eric Torres 2020-06-22 10:50:33 -07:00
parent 129ca17ccd
commit 09a53e2681
4 changed files with 0 additions and 52 deletions

View File

@ -1,22 +0,0 @@
# Fuzzy cd from anywhere
# Dependencies
# * fzf
# * mlocate
# ========== Shortcuts ==========
cf() {
[[ -z "${*}" ]] && return 1
[[ ! -x /usr/bin/fzf ]] && return 1
dir="$(locate --all --ignore-case --null -- "${@}" | fzf --read0 --select-1 --exit-0)"
[[ -z "${dir}" ]] && return 1
if [[ -f "${dir}" ]]; then
cd "${dir%/*}"
else
cd "${dir}"
fi
}
autoload -Uz cf

View File

@ -1,15 +0,0 @@
# Fuzzy find a file and then edit it
_run_fedit() {
fedit && zle reset-prompt
}
_run_etcedit() {
fedit --etc && zle reset-prompt
}
zle -N _run_fedit
bindkey -M viins '^o' _run_fedit
zle -N _run_etcedit
bindkey -M viins '^e' _run_etcedit

View File

@ -1,7 +0,0 @@
# Fuzzy-find a file and open it in less
_run_fless() {
/usr/bin/fless && zle reset-prompt
}
zle -N _run_fless
bindkey -M viins '^n' _run_fless

View File

@ -1,8 +0,0 @@
# Make a directory, then change into it
mkcd() {
[[ ! -d "${1}" ]] && mkdir --parents -- "${1}"
cd "${1}" || exit
}
autoload -Uz mkcd