Add back cd alias

This commit is contained in:
muon 2025-09-18 09:48:08 +00:00
parent aa1fdfbeaa
commit cb7e26983e

View file

@ -1,14 +1,22 @@
{ pkgs, lib, config, ... }: {
let pkgs,
lib,
config,
...
}: let
cfg = config.mods.terminal; cfg = config.mods.terminal;
aliases = with lib; { aliases = with lib; {
la = "ls -lah"; la = "ls -lah";
xc = "${getExe pkgs.xclip} -selection clipboard"; xc = "${getExe pkgs.xclip} -selection clipboard";
".." = "cd ..";
"..." = "cd ../..";
"...." = "cd ../..";
"....." = "cd ../../..";
"......" = "cd ../../../..";
}; };
in { in {
options.mods.terminal = { zsh.enable = lib.mkEnableOption "enables zsh"; }; options.mods.terminal = {zsh.enable = lib.mkEnableOption "enables zsh";};
config = { config = {
programs.starship.enable = true; programs.starship.enable = true;
@ -35,11 +43,13 @@ in {
shellAliases = aliases; shellAliases = aliases;
plugins = with pkgs; [{ plugins = with pkgs; [
{
name = "zsh-vi-mode"; name = "zsh-vi-mode";
src = zsh-vi-mode; src = zsh-vi-mode;
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh"; file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
}]; }
];
}; };
}; };
} }