From 02b3a5ff58f342c652eea34121dcddec846afa0b Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Sun, 12 May 2024 19:21:37 -0700 Subject: [PATCH] Remove dired alias --- init.zsh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/init.zsh b/init.zsh index a108c68..15f2411 100644 --- a/init.zsh +++ b/init.zsh @@ -79,26 +79,12 @@ elif [[ -v INSIDE_EMACS ]]; then alias e='emacsclient ' alias emacs='emacsclient ' alias n='emacsclient ' - alias dired='emacsclient ' - alias d='emacsclient ' else export EDITOR='emacsclient -a nvim -nw' # Because I keep using n by mistake alias emacs="${EDITOR} " alias n=emacs alias e=emacs - function dired() { - if (( ${#} == 0 )); then - emacsclient -nw --eval '(dired ".")' - else - args=() - for arg; do - args+=(--eval "(dired \"${arg:gs#\\#\\\\#:gs#\"#\\\"#}\")") - done - emacsclient -nw ${args} - fi - } - alias d=dired fi export VISUAL="${EDITOR}"