about summary refs log tree commit diff stats
path: root/nix-conf
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-07-11 14:11:21 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-07-11 14:11:21 +0100
commitc09daad766d6083f40443058b1e11a4606483e57 (patch)
tree0de1b77f7a53cd43a23df492519e9df93a97a164 /nix-conf
parentd462da08a0753eed761a108fc24063e52bae0bd9 (diff)
downloaddotfiles-c09daad766d6083f40443058b1e11a4606483e57.tar.gz
Tweak cd aliases/function
Diffstat (limited to 'nix-conf')
-rw-r--r--nix-conf/home/includes/zsh.nix3
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