diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/zsh/alias.zsh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index 212c99d..83357ff 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -145,6 +145,17 @@ econf() { $VISUAL $sc cd $p } +de() { + p=$(pwd) + cd "$HOME"/dev || return + sc=$(fzf --preview='head -$FZF_PREVIEW_LINES {}') + if [ ! "$sc" ]; then + cd $p + return + fi + $VISUAL $sc + cd $p +} eebin() { file=$(find "$HOME"/.local/bin -type f | fzf) [ $? -ne 0 ] && return |