From c09daad766d6083f40443058b1e11a4606483e57 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Thu, 11 Jul 2024 14:11:21 +0100 Subject: Tweak cd aliases/function --- nix-conf/home/includes/zsh.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nix-conf/home/includes') diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix index 9729386..38a32fa 100644 --- a/nix-conf/home/includes/zsh.nix +++ b/nix-conf/home/includes/zsh.nix @@ -178,9 +178,10 @@ in # TODO is there a way to do this in shellAliases alias ..="cd .." + alias ...="cd ../.." alias -- -="cd -" - ...() { + .,() { local declare dirs=() get_parent_dirs() { if [[ -d "''${1}" ]]; then dirs+=("$1"); else return; fi -- cgit 1.4.1-2-gfad0