mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +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,12 +1,20 @@
|
|||
{ 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";};
|
||||
|
||||
|
|
@ -35,11 +43,13 @@ in {
|
|||
|
||||
shellAliases = aliases;
|
||||
|
||||
plugins = with pkgs; [{
|
||||
plugins = with pkgs; [
|
||||
{
|
||||
name = "zsh-vi-mode";
|
||||
src = zsh-vi-mode;
|
||||
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue