From 9749fe0845f07d9631102948ed6fca59f6867649 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 7 Mar 2024 14:51:35 +0100 Subject: up --- .config/zsh/alias.zsh | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit v1.2.3