Remove zsh plugin files
This commit is contained in:
parent
129ca17ccd
commit
09a53e2681
@ -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
|
@ -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
|
@ -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
|
@ -1,8 +0,0 @@
|
||||
# Make a directory, then change into it
|
||||
|
||||
mkcd() {
|
||||
[[ ! -d "${1}" ]] && mkdir --parents -- "${1}"
|
||||
cd "${1}" || exit
|
||||
}
|
||||
|
||||
autoload -Uz mkcd
|
Loading…
x
Reference in New Issue
Block a user