From cb7e26983e1a7ac97da882c1ebe91df214164ae6 Mon Sep 17 00:00:00 2001 From: muon Date: Thu, 18 Sep 2025 09:48:08 +0000 Subject: [PATCH] Add back cd alias --- modules/home/terminal/shell.nix | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/modules/home/terminal/shell.nix b/modules/home/terminal/shell.nix index 6ad7b28..b8ad4a0 100644 --- a/modules/home/terminal/shell.nix +++ b/modules/home/terminal/shell.nix @@ -1,14 +1,22 @@ -{ pkgs, lib, config, ... }: -let +{ + pkgs, + lib, + config, + ... +}: let cfg = config.mods.terminal; aliases = with lib; { la = "ls -lah"; xc = "${getExe pkgs.xclip} -selection clipboard"; + ".." = "cd .."; + "..." = "cd ../.."; + "...." = "cd ../.."; + "....." = "cd ../../.."; + "......" = "cd ../../../.."; }; - in { - options.mods.terminal = { zsh.enable = lib.mkEnableOption "enables zsh"; }; + options.mods.terminal = {zsh.enable = lib.mkEnableOption "enables zsh";}; config = { programs.starship.enable = true; @@ -35,11 +43,13 @@ in { shellAliases = aliases; - plugins = with pkgs; [{ - name = "zsh-vi-mode"; - src = zsh-vi-mode; - file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh"; - }]; + plugins = with pkgs; [ + { + name = "zsh-vi-mode"; + src = zsh-vi-mode; + file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh"; + } + ]; }; }; }