mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add back cd alias
This commit is contained in:
parent
aa1fdfbeaa
commit
cb7e26983e
1 changed files with 19 additions and 9 deletions
|
|
@ -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";
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue