aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2025-06-23 16:05:06 +0100
committerDavid Morgan <djm_uk@protonmail.com>2025-06-23 16:05:06 +0100
commit8779faa76f5661e44e2a092988121a49e1fcb4c6 (patch)
treea3d4d0b525b4cf63c11af51fda732ac2fd5038f9
parentee728be979343e79352e7e730109c4c88b64b916 (diff)
downloaddotfiles-8779faa76f5661e44e2a092988121a49e1fcb4c6.tar.gz
Use ea for quick directorying switching
-rw-r--r--nix-conf/home/includes/zsh.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix
index 354298d..650f559 100644
--- a/nix-conf/home/includes/zsh.nix
+++ b/nix-conf/home/includes/zsh.nix
@@ -250,6 +250,10 @@ in
_vip $CMD ''${@}
}
+ function ecd () {
+ cd $(ea p ''${1:-1})
+ }
+
function generate () { gopass generate -s -p $1 $((RANDOM % 14 + 45)) }
function fcd { cd $(fd -L --max-depth=''${1:-4} --type=d 2>/dev/null | fzf-tmux) }