diff options
author | David Morgan <djm_uk@protonmail.com> | 2024-03-28 11:57:41 +0000 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2024-03-28 11:57:41 +0000 |
commit | 981174ea92f201974f203d5476eb4502ee3cd5e6 (patch) | |
tree | a5c46d1213923b3c09ab77c7d656ea78a41009bb /nix-conf/home | |
parent | 6acd971d320cd98bbe3f599c1f8ee16ef8913ae9 (diff) | |
download | dotfiles-981174ea92f201974f203d5476eb4502ee3cd5e6.tar.gz |
Change .. function to ... and add .. alias
Diffstat (limited to 'nix-conf/home')
-rw-r--r-- | nix-conf/home/includes/zsh.nix | 5 |
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 |