diff --git a/zsh/plugins/cf.zsh b/zsh/plugins/cf.zsh deleted file mode 100644 index c5aa1b6..0000000 --- a/zsh/plugins/cf.zsh +++ /dev/null @@ -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 diff --git a/zsh/plugins/fedit.zsh b/zsh/plugins/fedit.zsh deleted file mode 100644 index 9f182c7..0000000 --- a/zsh/plugins/fedit.zsh +++ /dev/null @@ -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 diff --git a/zsh/plugins/fless.zsh b/zsh/plugins/fless.zsh deleted file mode 100644 index 751fdeb..0000000 --- a/zsh/plugins/fless.zsh +++ /dev/null @@ -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 diff --git a/zsh/plugins/mkcd.zsh b/zsh/plugins/mkcd.zsh deleted file mode 100644 index a3896a0..0000000 --- a/zsh/plugins/mkcd.zsh +++ /dev/null @@ -1,8 +0,0 @@ -# Make a directory, then change into it - -mkcd() { - [[ ! -d "${1}" ]] && mkdir --parents -- "${1}" - cd "${1}" || exit -} - -autoload -Uz mkcd