mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-21 19:52:52 +00:00
add zsh
This commit is contained in:
parent
461cdc34dd
commit
f333315cfb
3 changed files with 31 additions and 19 deletions
|
@ -106,25 +106,6 @@
|
|||
"electron-25.9.0"
|
||||
];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
# enableBashCompletion = true;
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
theme = "ys";
|
||||
plugins = ["git" "colored-man-pages" "extract" "sudo"];
|
||||
};
|
||||
initExtra = ''
|
||||
eval "$(direnv hook zsh)"
|
||||
eval "$(starship init zsh)"
|
||||
alias vv=nvim
|
||||
alias yt-dlp-1080="yt-dlp -f 'bestvideo[height<=1080]+bestaudio/best[height<=1080]'"
|
||||
'';
|
||||
};
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
keybindings = {
|
||||
|
|
|
@ -2,9 +2,11 @@
|
|||
imports = [
|
||||
./bash
|
||||
./session-vars
|
||||
./zsh
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
bash.enable = lib.mkDefault true;
|
||||
zsh.enable = lib.mkDefault true;
|
||||
}
|
||||
|
|
29
modules/home-manager/zsh/default.nix
Normal file
29
modules/home-manager/zsh/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
zsh.enable = lib.mkEnableOption "enable zsh";
|
||||
};
|
||||
config = lib.mkIf config.zsh.enable {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
# enableBashCompletion = true;
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
theme = "ys";
|
||||
plugins = ["git" "colored-man-pages" "extract" "sudo"];
|
||||
};
|
||||
initExtra = ''
|
||||
eval "$(direnv hook zsh)"
|
||||
eval "$(starship init zsh)"
|
||||
alias vv=nvim
|
||||
alias yt-dlp-1080="yt-dlp -f 'bestvideo[height<=1080]+bestaudio/best[height<=1080]'"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue