Add basic packages and configured zsh and nvim

This commit is contained in:
2023-05-16 22:50:07 +02:00
parent 10930e861a
commit 0c9e597c63
10 changed files with 169 additions and 1 deletions

28
zsh/zsh.nix Normal file
View File

@@ -0,0 +1,28 @@
{ pkgs, ... }: {
programs.zsh = {
enable = true;
enableCompletion = true;
enableAutosuggestions = true;
defaultKeymap = "viins";
history.extended = true;
initExtra = ''
${builtins.readFile ./zshrc}
'';
sessionVariables = rec {
EDITOR = "nvim";
};
plugins = [
{
name = "zsh-autosuggestions";
src = pkgs.fetchFromGitHub {
owner = "zsh-users";
repo = "zsh-autosuggestions";
rev = "v0.6.3";
sha256 = "1h8h2mz9wpjpymgl2p7pc146c1jgb3dggpvzwm9ln3in336wl95c";
};
}
];
};
}

12
zsh/zshrc Normal file
View File

@@ -0,0 +1,12 @@
echo Welcome to ZSH
eval "$(ssh-agent -s)"
ssh-add $HOME/.ssh/id_rsa
alias vim='nvim'
alias f='vifm'
alias l='ls -al'
alias gs='git status'
alias ga='git add'
alias ga.='git add .'
alias homerc='vim ~/.config/home-manager/home.nix'