swtch to zsh

This commit is contained in:
Tim Schubert 2020-05-12 09:49:56 +02:00
parent c81070da92
commit e2359005d5
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
6 changed files with 108 additions and 20 deletions

49
zsh.nix Normal file
View file

@ -0,0 +1,49 @@
{ config, pkgs, lib, ... }:
{
programs.fzf.enableZshIntegration = true;
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
autocd = true;
sessionVariables = {
TERM = "xterm-256color";
EDITOR = "vim";
};
history = {
extended = true;
ignoreDups = true;
ignoreSpace = true;
save = 100000;
share = true;
};
plugins = [
];
initExtra = ''
source ~/.nix-profile/share/zsh-git-prompt/zshrc.sh
source ~/.nix-profile/share/fzf/key-bindings.zsh
source ~/.nix-profile/share/fzf/completion.zsh
PROMPT='%F{red}%?%f %F{green}%m%f:%F{blue}%~%f '
RPROMPT='$(git_super_status)'
'';
profileExtra = ''
'';
shellAliases = {
gst = "git status";
gco = "git commit";
glo = "git log";
gad = "git add";
ls = "exa";
ll = "exa -l";
la = "exa -la";
mv = "mv -i";
cp = "cp -i";
};
};
home.packages = [
pkgs.exa
pkgs.zsh-git-prompt
];
}