mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 05:03:09 +00:00
zsh: add autocd option
This commit is contained in:
parent
d2ed39f103
commit
02a07f19a1
1 changed files with 9 additions and 0 deletions
|
@ -149,6 +149,14 @@ in
|
|||
programs.zsh = {
|
||||
enable = mkEnableOption "Z shell (Zsh)";
|
||||
|
||||
autocd = mkOption {
|
||||
default = null;
|
||||
description = ''
|
||||
Automatically enter into a directory if typed directly into shell.
|
||||
'';
|
||||
type = types.nullOr types.bool;
|
||||
};
|
||||
|
||||
dotDir = mkOption {
|
||||
default = null;
|
||||
example = ".config/zsh";
|
||||
|
@ -378,6 +386,7 @@ in
|
|||
${if cfg.history.expireDuplicatesFirst then "setopt" else "unsetopt"} HIST_EXPIRE_DUPS_FIRST
|
||||
${if cfg.history.share then "setopt" else "unsetopt"} SHARE_HISTORY
|
||||
${if cfg.history.extended then "setopt" else "unsetopt"} EXTENDED_HISTORY
|
||||
${if cfg.autocd != null then "${if cfg.autocd then "setopt" else "unsetopt"} autocd" else ""}
|
||||
|
||||
${cfg.initExtra}
|
||||
|
||||
|
|
Loading…
Reference in a new issue