about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-03-28 11:57:41 +0000
committerDavid Morgan <djm_uk@protonmail.com>2024-03-28 11:57:41 +0000
commit981174ea92f201974f203d5476eb4502ee3cd5e6 (patch)
treea5c46d1213923b3c09ab77c7d656ea78a41009bb
parent6acd971d320cd98bbe3f599c1f8ee16ef8913ae9 (diff)
downloaddotfiles-981174ea92f201974f203d5476eb4502ee3cd5e6.tar.gz
Change .. function to ... and add .. alias
-rw-r--r--nix-conf/home/includes/zsh.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix
index 26c88b5..0ba8a0a 100644
--- a/nix-conf/home/includes/zsh.nix
+++ b/nix-conf/home/includes/zsh.nix
@@ -171,7 +171,10 @@ in
         [[ -n "$files" ]] && ''${EDITOR:-vim} "''${files[@]}"
       }
 
-      ..() {
+      # TODO is there a way to do this in shellAliases
+      alias ..="cd .."
+
+      ...() {
         local declare dirs=()
         get_parent_dirs() {
           if [[ -d "''${1}" ]]; then dirs+=("$1"); else return; fi