diff options
author | David Morgan <djm_uk@protonmail.com> | 2024-07-11 14:11:21 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2024-07-11 14:11:21 +0100 |
commit | c09daad766d6083f40443058b1e11a4606483e57 (patch) | |
tree | 0de1b77f7a53cd43a23df492519e9df93a97a164 /nix-conf/home/includes | |
parent | d462da08a0753eed761a108fc24063e52bae0bd9 (diff) | |
download | dotfiles-c09daad766d6083f40443058b1e11a4606483e57.tar.gz |
Tweak cd aliases/function
Diffstat (limited to 'nix-conf/home/includes')
-rw-r--r-- | nix-conf/home/includes/zsh.nix | 3 |
1 files changed, 2 insertions, 1 deletions
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 |